Skip to content

Commit

Permalink
CI: run wasm32-wasi tests with wasmtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Jul 12, 2024
1 parent ccfe03a commit 0be8bce
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,20 @@ jobs:

- name: Run Tests
run: zig build test --summary all

- name: Setup `wasmtime`
if: matrix.os == 'ubuntu-latest'
uses: bytecodealliance/actions/wasmtime/setup@v1
with:
version: "21.0.1" # Wasmtime v22.0.0 has removed support for the "Wasmtime 13-and-prior CLI"

- name: Print wasmtime version
if: matrix.os == 'ubuntu-latest'
run: "wasmtime --version"

- name: Run Tests (wasm32-wasi)
if: matrix.os == 'ubuntu-latest'
run: zig build test -Dtarget=wasm32-wasi -fwasmtime --summary all
env:
WASMTIME_NEW_CLI: 0
WASMTIME_BACKTRACE_DETAILS: 1

0 comments on commit 0be8bce

Please sign in to comment.