Browse Source

Attempt to fix CI

urgh
Alex Crichton 6 years ago
parent
commit
11e4edb58a
  1. 14
      ci/azure-install-rust.yml

14
ci/azure-install-rust.yml

@ -5,16 +5,20 @@ steps:
if [ "$toolchain" = "" ]; then if [ "$toolchain" = "" ]; then
toolchain=stable toolchain=stable
fi fi
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain if command -v rustup; then
echo "##vso[task.prependpath]$HOME/.cargo/bin" rustup update $toolchain
rustup default $toolchain
else
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain
echo "##vso[task.prependpath]$HOME/.cargo/bin"
fi
displayName: Install rust (unix) displayName: Install rust (unix)
condition: ne( variables['Agent.OS'], 'Windows_NT' ) condition: ne( variables['Agent.OS'], 'Windows_NT' )
- script: | - script: |
IF "%TOOLCHAIN%"=="" (SET TOOLCHAIN=stable-%TARGET%) IF "%TOOLCHAIN%"=="" (SET TOOLCHAIN=stable-%TARGET%)
curl -sSf -o rustup-init.exe https://win.rustup.rs rustup update %TOOLCHAIN%
rustup-init.exe -y --default-toolchain %TOOLCHAIN% rustup default %TOOLCHAIN%
echo ##vso[task.prependpath]%USERPROFILE%\.cargo\bin
displayName: Install rust (windows) displayName: Install rust (windows)
condition: eq( variables['Agent.OS'], 'Windows_NT' ) condition: eq( variables['Agent.OS'], 'Windows_NT' )

Loading…
Cancel
Save