From 22d747d9c18682659af3b0f06c8672e3a8e9d577 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Tue, 22 Dec 2020 15:21:08 +0100 Subject: add the github workflow --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml (limited to '.github/workflows') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6232e50 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + paths: + - '**.zig' + pull_request: + paths: + - '**.zig' + workflow_dispatch: + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - uses: goto-bus-stop/setup-zig@v1 + with: + version: master + + - name: Build + run: zig build + + - name: Run Tests + run: zig build test -- cgit v1.2.3