CI: check compilation of all examples

This commit is contained in:
iddev5 2022-04-30 23:22:19 +05:30 committed by Stephen Gutekanst
parent 09f3adf2b4
commit 5861893752
2 changed files with 11 additions and 0 deletions

View file

@ -30,6 +30,9 @@ jobs:
AGREE: true AGREE: true
- name: x86_64-linux -> x86_64-windows - name: x86_64-linux -> x86_64-windows
run: cd ${{ matrix.project }} && zig build test -Dtarget=x86_64-windows-gnu run: cd ${{ matrix.project }} && zig build test -Dtarget=x86_64-windows-gnu
- name: compile all examples
if: matrix.project == '.'
run: cd ${{ matrix.project }} && zig build compile-all
- 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
@ -68,6 +71,9 @@ jobs:
AGREE: true AGREE: true
- name: x86_64-windows -> x86_64-linux - name: x86_64-windows -> x86_64-linux
run: cd ${{ matrix.project }} && zig build test -Dtarget=x86_64-linux-gnu run: cd ${{ matrix.project }} && zig build test -Dtarget=x86_64-linux-gnu
- name: compile all examples
if: matrix.project == '.'
run: cd ${{ matrix.project }} && zig build compile-all
- 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

@ -39,3 +39,8 @@ jobs:
run: zig build test -Dtarget=x86_64-windows-gnu run: zig build test -Dtarget=x86_64-windows-gnu
- name: aarch64-macos -> x86_64-linux - name: aarch64-macos -> x86_64-linux
run: zig build test -Dtarget=x86_64-linux-gnu run: zig build test -Dtarget=x86_64-linux-gnu
- name: compile all examples
if: matrix.project == '.'
run: cd ${{ matrix.project }} && zig build compile-all
env:
AGREE: true