feature: add zig to build workflow
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
This commit is contained in:
5
.github/workflows/build.yaml
vendored
5
.github/workflows/build.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user