2019-05-01 15:12:02 +00:00
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
curl -sSf -o rustup-init.exe https://win.rustup.rs
|
2019-05-14 03:53:26 +00:00
|
|
|
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
|
2019-05-01 15:12:02 +00:00
|
|
|
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
|
2019-05-14 03:53:26 +00:00
|
|
|
displayName: Windows install rust
|
2019-05-01 15:12:02 +00:00
|
|
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
|
|
|
- script: |
|
2019-05-14 03:53:26 +00:00
|
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
|
2019-05-01 15:12:02 +00:00
|
|
|
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
2019-05-14 03:53:26 +00:00
|
|
|
displayName: Install rust
|
2019-05-01 15:12:02 +00:00
|
|
|
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|