Skip to content

Commit

Permalink
Try WASI in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Feb 17, 2023
1 parent ae79f0e commit d9a4ca8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@ jobs:
- run: cargo test --verbose --package rayon-core
- run: ./ci/highlander.sh

# wasm32-unknown-unknown builds, and even has the runtime fallback for
# unsupported threading, but we don't have an environment to execute in.
# wasm32-wasi can test the fallback by running in wasmtime.
wasm:
name: WebAssembly
runs-on: ubuntu-latest
env:
CARGO_TARGET_WASM32_WASI_RUNNER: $HOME/.wasmtime/bin/wasmtime
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown,wasm32-wasi
- run: cargo check --verbose --target wasm32-unknown-unknown
- run: cargo check --verbose --target wasm32-wasi
- run: curl https://wasmtime.dev/install.sh -sSf | bash
- run: cargo test --verbose --target wasm32-wasi --package rayon
- run: cargo test --verbose --target wasm32-wasi --package rayon-core

fmt:
name: Format
runs-on: ubuntu-latest
Expand Down

0 comments on commit d9a4ca8

Please sign in to comment.