Skip to content

Commit e24c031

Browse files
committed
Attempt to fix CI
1 parent 59e773f commit e24c031

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
steps:
102102
- template: ci/azure-install-rust.yml
103103
- template: ci/azure-install-node.yml
104-
- template: ci/azure-install-sccache.yml
104+
#- template: ci/azure-install-sccache.yml
105105
- script: cargo test -p wasm-bindgen-webidl
106106
- script: cargo test -p webidl-tests --target wasm32-unknown-unknown
107107
env:
@@ -128,7 +128,7 @@ jobs:
128128
cd wabt/build
129129
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=off -DCMAKE_CXX_COMPILER_LAUNCHER=$RUSTC_WRAPPER
130130
cmake --build . -- -j$(nproc)
131-
echo "##vso[task.setvariable variable=PATH;]$PATH:$PWD"
131+
echo "##vso[task.prependpath]$PWD"
132132
- script: cargo test -p wasm-bindgen-wasm-interpreter
133133

134134
- job: test_typescript_output
@@ -171,7 +171,7 @@ jobs:
171171
- script: |
172172
set -e
173173
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"
175175
displayName: "install xargo"
176176
- script: |
177177
set -e

ci/azure-install-rust.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@ parameters:
33

44
steps:
55
- 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
814
displayName: Install rust - Unix
915
condition: ne( variables['Agent.OS'], 'Windows_NT' )
1016
env:
1117
TOOLCHAIN: ${{ parameters.toolchain }}
1218
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
1720
displayName: Install rust - Windows
1821
condition: eq( variables['Agent.OS'], 'Windows_NT' )
1922
env:

ci/azure-install-wasm-pack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ steps:
44
- script: |
55
set -ex
66
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
88
displayName: "install wasm-bindgen for `wasm-pack` to use"

0 commit comments

Comments
 (0)