feature: add zig to build workflow

Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
This commit is contained in:
Michael Hoffmann
2023-11-18 09:18:57 +01:00
parent de0ca40852
commit 3b8085d5db

View File

@@ -8,7 +8,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
compiler: [gcc, clang]
compiler: [gcc, clang, zig cc]
name: compile
runs-on: ${{ matrix.os }}
@@ -20,5 +20,8 @@ jobs:
with:
version: '12.2.0'
- if: matrix.compiler == 'zig cc'
uses: goto-bus-stop/setup-zig@v2
- name: build
run: ${{ matrix.compiler }} -o scanner.o -I./src -c src/scanner.c -Werror