From 0be8bcebb12ef7024a7a6be923467627dcde9a75 Mon Sep 17 00:00:00 2001 From: Techatrix Date: Fri, 12 Jul 2024 02:08:58 +0200 Subject: [PATCH] CI: run wasm32-wasi tests with wasmtime --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a501b87..6071f0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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