Skip to content

Commit 6af4551

Browse files
calebschoeppdjc
authored andcommitted
Add regression test to CI for WASI support
Signed-off-by: Caleb Schoepp <caleb.schoepp@fermyon.com>
1 parent 03c2a8f commit 6af4551

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/CI.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,18 @@ jobs:
148148
- name: Run doctests
149149
run: cargo test --doc --workspace --all-features
150150

151-
test-build-wasm:
152-
name: build tests (wasm)
151+
test-build-across-targets:
152+
name: build tests (${{ matrix.target }})
153153
needs: check
154+
strategy:
155+
matrix:
156+
target: [wasm32-unknown-unknown, wasm32-wasi]
154157
runs-on: ubuntu-latest
155158
steps:
156159
- uses: actions/checkout@v4
157160
- uses: dtolnay/rust-toolchain@stable
158161
with:
159-
target: wasm32-unknown-unknown
162+
target: ${{ matrix.target }}
160163
- name: build all tests
161164
run: cargo test --no-run --all-features
162165

@@ -169,7 +172,7 @@ jobs:
169172
- style
170173
- cargo-hack
171174
- check-msrv
172-
- test-build-wasm
175+
- test-build-across-targets
173176
- test
174177
steps:
175178
- run: exit 0

0 commit comments

Comments
 (0)