diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78da4831..01b1f3d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,9 @@ jobs: - name: compile all examples if: matrix.project == '.' run: cd ${{ matrix.project }} && zig build compile-all + - name: compile all examples (WASM) + if: matrix.project == '.' + run: cd ${{ matrix.project }} && zig build compile-all -Dtarget=wasm32-freestanding-none - name: launch xvfb run: Xvfb :99 -screen 0 1680x720x24 > /dev/null 2>&1 & - name: test @@ -74,6 +77,9 @@ jobs: - name: compile all examples if: matrix.project == '.' run: cd ${{ matrix.project }} && zig build compile-all + - name: compile all examples (WASM) + if: matrix.project == '.' + run: cd ${{ matrix.project }} && zig build compile-all -Dtarget=wasm32-freestanding-none - name: test run: cd ${{ matrix.project }} && zig build test x86_64-macos: diff --git a/.github/workflows/m1_ci.yml b/.github/workflows/m1_ci.yml index 7e0388af..26d9b8ec 100644 --- a/.github/workflows/m1_ci.yml +++ b/.github/workflows/m1_ci.yml @@ -44,3 +44,6 @@ jobs: run: cd ${{ matrix.project }} && zig build compile-all env: AGREE: true + - name: compile all examples (WASM) + if: matrix.project == '.' + run: cd ${{ matrix.project }} && zig build compile-all -Dtarget=wasm32-freestanding-none