mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 06:21:36 +03:00
26 lines
818 B
YAML
26 lines
818 B
YAML
|
parameters:
|
||
|
toolchain: 'stable'
|
||
|
|
||
|
steps:
|
||
|
- bash: |
|
||
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN
|
||
|
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
||
|
displayName: Install rust - Unix
|
||
|
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.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
|
||
|
displayName: Install rust - Windows
|
||
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||
|
env:
|
||
|
TOOLCHAIN: ${{ parameters.toolchain }}
|
||
|
|
||
|
- script: |
|
||
|
rustc -Vv
|
||
|
cargo -V
|
||
|
displayName: Query rust and cargo versions
|