Files
tree-sitter-jhcl/.github/workflows/build.yaml
Michael Hoffmann 3b8085d5db feature: add zig to build workflow
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2023-11-18 09:24:00 +01:00

28 lines
634 B
YAML

name: build
on: [pull_request]
jobs:
compile:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
compiler: [gcc, clang, zig cc]
name: compile
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- if: matrix.os == 'windows-latest' && matrix.compiler == 'gcc'
uses: csukuangfj/setup-mingw@v2.2.1
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