From 48b7e2e95ddd6ca8e9268a4984f5aab38908e82f Mon Sep 17 00:00:00 2001 From: torque Date: Sat, 14 Sep 2024 17:33:58 -0700 Subject: [PATCH] integrate, continuously --- .github/workflows/ci.yaml | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..ce064da --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + build: + strategy: + fail-fast: false + matrix: + zig-version: ["0.13.0"] + os: [ubuntu-latest, macos-latest, windows-latest] + include: + - zig-version: "0.12.1" + os: ubuntu-latest + - zig-version: "master" + check-format: true + os: ubuntu-latest + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Zig + uses: mlugg/setup-zig@v1 + with: + version: ${{ matrix.zig-version }} + + - if: ${{ matrix.check-format }} + name: Check Formatting + run: zig fmt --ast-check --check . + + - name: Build + run: zig build --summary all