File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ jobs:
101
101
steps :
102
102
- template : ci/azure-install-rust.yml
103
103
- template : ci/azure-install-node.yml
104
- - template : ci/azure-install-sccache.yml
104
+ # - template: ci/azure-install-sccache.yml
105
105
- script : cargo test -p wasm-bindgen-webidl
106
106
- script : cargo test -p webidl-tests --target wasm32-unknown-unknown
107
107
env :
Original file line number Diff line number Diff line change @@ -3,17 +3,20 @@ parameters:
3
3
4
4
steps :
5
5
- bash : |
6
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN
7
- echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
6
+ set -e
7
+ if command -v rustup; then
8
+ rustup update $TOOLCHAIN
9
+ rustup default $TOOLCHAIN
10
+ else
11
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN
12
+ echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
13
+ fi
8
14
displayName: Install rust - Unix
9
15
condition: ne( variables['Agent.OS'], 'Windows_NT' )
10
16
env:
11
17
TOOLCHAIN: ${{ parameters.toolchain }}
12
18
13
- - script : |
14
- curl -sSf -o rustup-init.exe https://win.rustup.rs
15
- rustup-init.exe -y --default-toolchain %TOOLCHAIN%
16
- echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
19
+ - bash : rustup update $TOOLCHAIN && rustup default $TOOLCHAIN
17
20
displayName : Install rust - Windows
18
21
condition : eq( variables['Agent.OS'], 'Windows_NT' )
19
22
env :
Original file line number Diff line number Diff line change 4
4
- script : |
5
5
set -ex
6
6
cargo build -p wasm-bindgen-cli
7
- ln -snf `pwd`/target/debug/wasm-bindgen $HOME/. cargo/bin /wasm-bindgen
7
+ ln -snf `pwd`/target/debug/wasm-bindgen $(dirname `which cargo`) /wasm-bindgen
8
8
displayName: "install wasm-bindgen for `wasm-pack` to use"
You can’t perform that action at this time.
0 commit comments