File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Expand file tree Collapse file tree 3 files changed +13
-10
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 :
@@ -128,7 +128,7 @@ jobs:
128
128
cd wabt/build
129
129
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=off -DCMAKE_CXX_COMPILER_LAUNCHER=$RUSTC_WRAPPER
130
130
cmake --build . -- -j$(nproc)
131
- echo "##vso[task.setvariable variable=PATH;]$PATH: $PWD"
131
+ echo "##vso[task.prependpath] $PWD"
132
132
- script : cargo test -p wasm-bindgen-wasm-interpreter
133
133
134
134
- job : test_typescript_output
@@ -171,7 +171,7 @@ jobs:
171
171
- script : |
172
172
set -e
173
173
curl -L https://github.com/japaric/xargo/releases/download/v0.3.13/xargo-v0.3.13-x86_64-unknown-linux-musl.tar.gz | tar xzf -
174
- echo "##vso[task.setvariable variable=PATH;]$PATH: $PWD"
174
+ echo "##vso[task.prependpath] $PWD"
175
175
displayName: "install xargo"
176
176
- script : |
177
177
set -e
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.prependpath]$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 --no-self-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