Skip to content

Commit 636f3b2

Browse files
authored
Merge pull request #147 from dtolnay/rustuptemp
Download rustup-init.exe to temp dir instead of current dir
2 parents 1901dba + 1f3b09e commit 636f3b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ runs:
7878
- run: |
7979
: install rustup if needed on windows
8080
if ! command -v rustup &>/dev/null; then
81-
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused --location --silent --show-error --fail --remote-name https://static.rust-lang.org/rustup/dist/${{ runner.arch == 'ARM64' && 'aarch64' || 'x86_64' }}-pc-windows-msvc/rustup-init.exe
82-
./rustup-init.exe --default-toolchain none --no-modify-path -y
81+
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused --location --silent --show-error --fail https://static.rust-lang.org/rustup/dist/${{ runner.arch == 'ARM64' && 'aarch64' || 'x86_64' }}-pc-windows-msvc/rustup-init.exe --output '${{runner.temp}}\rustup-init.exe'
82+
'${{runner.temp}}\rustup-init.exe' --default-toolchain none --no-modify-path -y
8383
echo "$USERPROFILE/.cargo/bin" >> $GITHUB_PATH
8484
fi
8585
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)