Skip to content

Commit 289a8c7

Browse files
committed
split WASI job
1 parent 85bbf3d commit 289a8c7

File tree

1 file changed

+43
-10
lines changed

1 file changed

+43
-10
lines changed

.github/workflows/tests.yml

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -336,25 +336,58 @@ jobs:
336336
# Firefox doesn't support module service workers and therefor can't import scripts
337337
run: wasm-pack test --headless --chrome -- ${{ matrix.rust.args }}
338338

339-
wasi:
340-
name: WASI
339+
wasi_p1:
340+
name: WASIp1
341341
runs-on: ubuntu-24.04
342342
steps:
343343
- uses: actions/checkout@v6
344344
- uses: dtolnay/rust-toolchain@master
345345
with:
346-
toolchain: 1.92
347-
targets: wasm32-wasip1,wasm32-wasip2,wasm32-wasip3
346+
toolchain: 1.85
347+
targets: wasm32-wasip1
348348
- name: Install Wasmtime
349349
run: |
350350
VERSION=v40.0.0
351351
URL=https://github.com/bytecodealliance/wasmtime/releases/download/${VERSION}/wasmtime-${VERSION}-x86_64-linux.tar.xz
352352
wget -O - $URL | tar -xJ --strip-components=1 -C ~/.cargo/bin
353353
wasmtime --version
354354
- uses: Swatinem/rust-cache@v2
355-
- name: WASIp1 Test
356-
run: cargo test --target wasm32-wasip1
357-
- name: WASIp2 Test
358-
run: cargo test --target wasm32-wasip2
359-
- name: WASIp3 Test
360-
run: cargo test --target wasm32-wasip3
355+
- run: cargo test --target wasm32-wasip1
356+
357+
wasi_p2:
358+
name: WASIp2
359+
runs-on: ubuntu-24.04
360+
steps:
361+
- uses: actions/checkout@v6
362+
- uses: dtolnay/rust-toolchain@master
363+
with:
364+
toolchain: 1.85
365+
targets: wasm32-wasip2
366+
- name: Install Wasmtime
367+
run: |
368+
VERSION=v40.0.0
369+
URL=https://github.com/bytecodealliance/wasmtime/releases/download/${VERSION}/wasmtime-${VERSION}-x86_64-linux.tar.xz
370+
wget -O - $URL | tar -xJ --strip-components=1 -C ~/.cargo/bin
371+
wasmtime --version
372+
- uses: Swatinem/rust-cache@v2
373+
- run: cargo test --target wasm32-wasip2
374+
375+
wasi_p3:
376+
name: WASIp3
377+
runs-on: ubuntu-24.04
378+
steps:
379+
- uses: actions/checkout@v6
380+
- uses: dtolnay/rust-toolchain@master
381+
with:
382+
# TODO: switch to stable after pre-built
383+
# `std` is published for wasm32-wasip3
384+
toolchain: nightly-2026-01-07
385+
components: rust-src
386+
- name: Install Wasmtime
387+
run: |
388+
VERSION=v40.0.0
389+
URL=https://github.com/bytecodealliance/wasmtime/releases/download/${VERSION}/wasmtime-${VERSION}-x86_64-linux.tar.xz
390+
wget -O - $URL | tar -xJ --strip-components=1 -C ~/.cargo/bin
391+
wasmtime --version
392+
- uses: Swatinem/rust-cache@v2
393+
- run: cargo test -Zbuild-std --target wasm32-wasip3

0 commit comments

Comments
 (0)