Skip to content

Commit

Permalink
Add regression test to CI for WASI support
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb Schoepp <caleb.schoepp@fermyon.com>
  • Loading branch information
calebschoepp authored and djc committed May 29, 2024
1 parent 03c2a8f commit 6af4551
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,18 @@ jobs:
- name: Run doctests
run: cargo test --doc --workspace --all-features

test-build-wasm:
name: build tests (wasm)
test-build-across-targets:
name: build tests (${{ matrix.target }})
needs: check
strategy:
matrix:
target: [wasm32-unknown-unknown, wasm32-wasi]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown
target: ${{ matrix.target }}
- name: build all tests
run: cargo test --no-run --all-features

Expand All @@ -169,7 +172,7 @@ jobs:
- style
- cargo-hack
- check-msrv
- test-build-wasm
- test-build-across-targets
- test
steps:
- run: exit 0

0 comments on commit 6af4551

Please sign in to comment.