CI: compile all examples for Wasm

This commit is contained in:
iddev5 2022-05-30 12:42:05 +05:30 committed by Stephen Gutekanst
parent b57fe9a420
commit 7de0776f38
2 changed files with 9 additions and 0 deletions

View file

@ -33,6 +33,9 @@ jobs:
- name: compile all examples - name: compile all examples
if: matrix.project == '.' if: matrix.project == '.'
run: cd ${{ matrix.project }} && zig build compile-all 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 - name: launch xvfb
run: Xvfb :99 -screen 0 1680x720x24 > /dev/null 2>&1 & run: Xvfb :99 -screen 0 1680x720x24 > /dev/null 2>&1 &
- name: test - name: test
@ -74,6 +77,9 @@ jobs:
- name: compile all examples - name: compile all examples
if: matrix.project == '.' if: matrix.project == '.'
run: cd ${{ matrix.project }} && zig build compile-all 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 - name: test
run: cd ${{ matrix.project }} && zig build test run: cd ${{ matrix.project }} && zig build test
x86_64-macos: x86_64-macos:

View file

@ -44,3 +44,6 @@ jobs:
run: cd ${{ matrix.project }} && zig build compile-all run: cd ${{ matrix.project }} && zig build compile-all
env: env:
AGREE: true AGREE: true
- name: compile all examples (WASM)
if: matrix.project == '.'
run: cd ${{ matrix.project }} && zig build compile-all -Dtarget=wasm32-freestanding-none