Files
tree-sitter-jhcl/.github/workflows/build.yaml
mhoffm 808b2de94f add compile workflow
add fuzzing instrumentation
2021-07-01 02:22:02 +02:00

29 lines
649 B
YAML

name: build
on:
push:
jobs:
compile:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
compiler: [gcc, clang++]
name: compile
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- if: matrix.os == 'windows-latest' && matrix.compiler == 'clang++'
uses: KyleMayes/install-llvm-action@v1
with:
version: "11.0"
- if: matrix.os == 'windows-latest' && matrix.compiler == 'gcc'
uses: egor-tensin/setup-mingw@v2
- name: build
run: ${{ matrix.compiler }} -o scanner.o -I./src -c src/scanner.cc