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