@@ -336,23 +336,57 @@ 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 :
346346 toolchain : 1.85
347- targets : wasm32-wasip1,wasm32-wasip2
347+ targets : wasm32-wasip1
348348 - name : Install Wasmtime
349349 run : |
350- VERSION=v24 .0.0
350+ 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 : WASI 0.1 Test
356- run : cargo test --target wasm32-wasip1
357- - name : WASI 0.2 Test
358- run : cargo test --target wasm32-wasip2
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+ # TODO: enable after pre-built std will be provided by Rust
376+ # wasi_p3:
377+ # name: WASIp3
378+ # runs-on: ubuntu-24.04
379+ # steps:
380+ # - uses: actions/checkout@v6
381+ # - uses: dtolnay/rust-toolchain@master
382+ # with:
383+ # toolchain: 1.90
384+ # targets: wasm32-wasip3
385+ # - name: Install Wasmtime
386+ # run: |
387+ # VERSION=v40.0.0
388+ # URL=https://github.com/bytecodealliance/wasmtime/releases/download/${VERSION}/wasmtime-${VERSION}-x86_64-linux.tar.xz
389+ # wget -O - $URL | tar -xJ --strip-components=1 -C ~/.cargo/bin
390+ # wasmtime --version
391+ # - uses: Swatinem/rust-cache@v2
392+ # - run: cargo test --target wasm32-wasip3
0 commit comments