27 lines
770 B
YAML
27 lines
770 B
YAML
parameters:
|
|
toolchain: 'nightly'
|
|
|
|
steps:
|
|
- bash: |
|
|
set -e
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN
|
|
echo "##vso[task.prependpath]$HOME/.cargo/bin"
|
|
displayName: Install rust
|
|
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
|
env:
|
|
TOOLCHAIN: ${{ parameters.toolchain }}
|
|
|
|
- script: |
|
|
curl -sSf -o rustup-init.exe https://win.rustup.rs
|
|
rustup-init.exe -y --default-toolchain %TOOLCHAIN%
|
|
echo ##vso[task.prependpath]%USERPROFILE%\.cargo\bin
|
|
displayName: Install rust
|
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
|
env:
|
|
TOOLCHAIN: ${{ parameters.toolchain }}
|
|
|
|
- script: |
|
|
rustc -Vv
|
|
cargo -V
|
|
displayName: Query rust and cargo versions
|