Skip to content

Commit 049539e

Browse files
committed
ci: Add wasm32 SIMD128 test job
Run tests/ and lib unit tests on wasm32-wasip1 via wasmtime, with matrix entries for both the new simd128 kernel and the scalar fallback path.
1 parent ce8539d commit 049539e

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,38 @@ jobs:
156156
MMTEST_FAST_TEST: 1
157157

158158

159+
wasm_test:
160+
runs-on: ubuntu-latest
161+
strategy:
162+
matrix:
163+
include:
164+
- rust: stable
165+
target: wasm32-wasip1
166+
rustflags: ""
167+
name: fallback
168+
- rust: stable
169+
target: wasm32-wasip1
170+
rustflags: "-C target-feature=+simd128"
171+
name: simd128
172+
173+
name: wasm_test/${{ matrix.target }}/${{ matrix.name }}
174+
steps:
175+
- uses: actions/checkout@v4
176+
- uses: dtolnay/rust-toolchain@stable
177+
with:
178+
toolchain: ${{ matrix.rust }}
179+
targets: ${{ matrix.target }}
180+
- name: Install wasmtime
181+
uses: bytecodealliance/actions/wasmtime/setup@v1
182+
- name: Tests
183+
run: |
184+
cargo test -v --tests --lib --release --no-fail-fast --target "${{ matrix.target }}"
185+
env:
186+
RUSTFLAGS: ${{ matrix.rustflags }}
187+
CARGO_TARGET_WASM32_WASIP1_RUNNER: "wasmtime --dir=."
188+
MMTEST_FAST_TEST: 1
189+
190+
159191
cargo-careful:
160192
runs-on: ubuntu-latest
161193
name: cargo-careful

0 commit comments

Comments
 (0)