Skip to content

Commit

Permalink
CI: Test wasm32-wasip2 target too.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Jan 12, 2025
1 parent 7b95153 commit 8d7a6f8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ jobs:
- riscv64gc-unknown-linux-gnu
- wasm32-wasi
- wasm32-wasip1
- wasm32-wasip2
- x86_64-pc-windows-gnu
- x86_64-pc-windows-msvc
- x86_64-apple-darwin
Expand Down Expand Up @@ -209,6 +210,10 @@ jobs:
- target: wasm32-wasip1
rust_channel: 1.63.0

# Not available.
- target: wasm32-wasip2
rust_channel: 1.63.0

include:
- target: aarch64-apple-darwin
host_os: macos-14
Expand Down Expand Up @@ -320,6 +325,9 @@ jobs:
- target: wasm32-wasip1
host_os: ubuntu-22.04

- target: wasm32-wasip2
host_os: ubuntu-22.04

- target: x86_64-pc-windows-gnu
host_os: windows-latest

Expand Down
4 changes: 4 additions & 0 deletions mk/cargo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ case $target in
use_clang=1
export CARGO_TARGET_WASM32_WASIP1_RUNNER=target/tools/linux-x86_64/wasmtime/wasmtime
;;
wasm32-wasip2)
use_clang=1
export CARGO_TARGET_WASM32_WASIP2_RUNNER=target/tools/linux-x86_64/wasmtime/wasmtime
;;
*)
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion mk/install-build-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ wasm32-unknown-unknown)
cargo install wasm-bindgen-cli --bin wasm-bindgen-test-runner
use_clang=1
;;
wasm32-wasi|wasm32-wasip1)
wasm32-wasi|wasm32-wasip1|wasm32-wasip2)
use_clang=1
git clone \
--branch linux-x86_64 \
Expand Down

0 comments on commit 8d7a6f8

Please sign in to comment.