We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b32d51 commit 2c5b5afCopy full SHA for 2c5b5af
ci/azure-install-rust.yml
@@ -15,7 +15,16 @@ steps:
15
displayName: Install rust (unix)
16
condition: ne( variables['Agent.OS'], 'Windows_NT' )
17
18
- - bash: rustup update --no-self-update stable-$TARGET && rustup default stable-$TARGET
+ - bash: |
19
+ set -e
20
+ if command -v rustup; then
21
+ rustup update --no-self-update stable-$TARGET
22
+ rustup default stable-$TARGET
23
+ else
24
+ curl.exe -sSf -o rustup-init.exe https://win.rustup.rs
25
+ ./rustup-init.exe -y --default-toolchain stable-$TARGET
26
+ echo "##vso[task.prependpath]$USERPROFILE/.cargo/bin"
27
+ fi
28
displayName: Install rust (windows)
29
condition: eq( variables['Agent.OS'], 'Windows_NT' )
30
0 commit comments