mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-15 17:50:51 +00:00
Attempt to fix CI
This commit is contained in:
parent
59e773f5ec
commit
e24c03182b
@ -101,7 +101,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- template: ci/azure-install-rust.yml
|
- template: ci/azure-install-rust.yml
|
||||||
- template: ci/azure-install-node.yml
|
- template: ci/azure-install-node.yml
|
||||||
- template: ci/azure-install-sccache.yml
|
#- template: ci/azure-install-sccache.yml
|
||||||
- script: cargo test -p wasm-bindgen-webidl
|
- script: cargo test -p wasm-bindgen-webidl
|
||||||
- script: cargo test -p webidl-tests --target wasm32-unknown-unknown
|
- script: cargo test -p webidl-tests --target wasm32-unknown-unknown
|
||||||
env:
|
env:
|
||||||
@ -128,7 +128,7 @@ jobs:
|
|||||||
cd wabt/build
|
cd wabt/build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=off -DCMAKE_CXX_COMPILER_LAUNCHER=$RUSTC_WRAPPER
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=off -DCMAKE_CXX_COMPILER_LAUNCHER=$RUSTC_WRAPPER
|
||||||
cmake --build . -- -j$(nproc)
|
cmake --build . -- -j$(nproc)
|
||||||
echo "##vso[task.setvariable variable=PATH;]$PATH:$PWD"
|
echo "##vso[task.prependpath]$PWD"
|
||||||
- script: cargo test -p wasm-bindgen-wasm-interpreter
|
- script: cargo test -p wasm-bindgen-wasm-interpreter
|
||||||
|
|
||||||
- job: test_typescript_output
|
- job: test_typescript_output
|
||||||
@ -171,7 +171,7 @@ jobs:
|
|||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
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 -
|
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 -
|
||||||
echo "##vso[task.setvariable variable=PATH;]$PATH:$PWD"
|
echo "##vso[task.prependpath]$PWD"
|
||||||
displayName: "install xargo"
|
displayName: "install xargo"
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
|
@ -3,17 +3,20 @@ parameters:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- bash: |
|
- bash: |
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN
|
set -e
|
||||||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
if command -v rustup; then
|
||||||
|
rustup update $TOOLCHAIN
|
||||||
|
rustup default $TOOLCHAIN
|
||||||
|
else
|
||||||
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN
|
||||||
|
echo "##vso[task.prependpath]$HOME/.cargo/bin"
|
||||||
|
fi
|
||||||
displayName: Install rust - Unix
|
displayName: Install rust - Unix
|
||||||
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
||||||
env:
|
env:
|
||||||
TOOLCHAIN: ${{ parameters.toolchain }}
|
TOOLCHAIN: ${{ parameters.toolchain }}
|
||||||
|
|
||||||
- script: |
|
- bash: rustup update --no-self-update $TOOLCHAIN && rustup default $TOOLCHAIN
|
||||||
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
|
displayName: Install rust - Windows
|
||||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||||
env:
|
env:
|
||||||
|
@ -4,5 +4,5 @@ steps:
|
|||||||
- script: |
|
- script: |
|
||||||
set -ex
|
set -ex
|
||||||
cargo build -p wasm-bindgen-cli
|
cargo build -p wasm-bindgen-cli
|
||||||
ln -snf `pwd`/target/debug/wasm-bindgen $HOME/.cargo/bin/wasm-bindgen
|
ln -snf `pwd`/target/debug/wasm-bindgen $(dirname `which cargo`)/wasm-bindgen
|
||||||
displayName: "install wasm-bindgen for `wasm-pack` to use"
|
displayName: "install wasm-bindgen for `wasm-pack` to use"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user