Skip to content

Commit 06528a9

Browse files
committed
Still install rustup on older Windows images...
1 parent 28a0c26 commit 06528a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/azure-install-rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ steps:
1616
condition: ne( variables['Agent.OS'], 'Windows_NT' )
1717
1818
- script: |
19+
IF "%RUSTUP_HOME%"=="" (curl -sSf -o rustup-init.exe https://win.rustup.rs)
1920
IF "%TOOLCHAIN%"=="" (SET TOOLCHAIN=stable-%TARGET%)
21+
IF "%RUSTUP_HOME%"=="" (rustup-init.exe -y --default-toolchain %TOOLCHAIN%)
2022
rustup update --no-self-update %TOOLCHAIN%
2123
rustup default %TOOLCHAIN%
2224
displayName: Install rust (windows)

0 commit comments

Comments
 (0)