mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +00:00
This reverts commit 98a1416fbf.
This commit is contained in:
@@ -10,8 +10,7 @@ echo "Installing Rustup..."
|
||||
brew_smart_install "rustup-init"
|
||||
|
||||
echo "Installing Rust language..."
|
||||
# Pin to 1.89.0 until https://github.com/actions/runner-images/issues/13041 && https://github.com/rust-lang/rust/issues/145936 is resolved
|
||||
rustup-init -y --no-modify-path --default-toolchain=1.89.0 --profile=minimal
|
||||
rustup-init -y --no-modify-path --default-toolchain=stable --profile=minimal
|
||||
|
||||
echo "Initialize environment variables..."
|
||||
CARGO_HOME=$HOME/.cargo
|
||||
|
||||
@@ -11,8 +11,7 @@ source $HELPER_SCRIPTS/os.sh
|
||||
export RUSTUP_HOME=/etc/skel/.rustup
|
||||
export CARGO_HOME=/etc/skel/.cargo
|
||||
|
||||
# Pin to 1.89.0 until https://github.com/actions/runner-images/issues/13041 && https://github.com/rust-lang/rust/issues/145936 is resolved
|
||||
curl -fsSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.89.0 --profile=minimal
|
||||
curl -fsSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=stable --profile=minimal
|
||||
|
||||
# Initialize environment variables
|
||||
source $CARGO_HOME/env
|
||||
|
||||
@@ -18,8 +18,7 @@ Test-FileChecksum $rustupPath -ExpectedSHA256Sum $distributorFileHash
|
||||
#endregion
|
||||
|
||||
# Install Rust by running rustup-init.exe (disabling the confirmation prompt with -y)
|
||||
# Pin to 1.89.0 until https://github.com/actions/runner-images/issues/13041 && https://github.com/rust-lang/rust/issues/145936 is resolved
|
||||
& $rustupPath -y --default-toolchain=1.89.0 --profile=minimal
|
||||
& $rustupPath -y --default-toolchain=stable --profile=minimal
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Rust installation failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user