From 5ccc21207a141e755144a41199624be7983a2bd4 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 29 Apr 2024 16:36:10 -0700 Subject: [PATCH] add standard zig workflow --- .github/workflows/zig-build.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/zig-build.yaml diff --git a/.github/workflows/zig-build.yaml b/.github/workflows/zig-build.yaml new file mode 100644 index 0000000..be64846 --- /dev/null +++ b/.github/workflows/zig-build.yaml @@ -0,0 +1,29 @@ +name: Generic zig build +on: + workflow_dispatch: + push: + branches: + - '*' + - '!zig-develop*' +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: elerch/setup-zig@v3 + with: + version: 0.12.0 + - uses: Hanaasagi/zig-action-cache@v1.1.5 + - name: Build project + run: zig build --summary all + - name: Run tests + run: zig build test --summary all + - name: Notify + uses: elerch/action-notify-ntfy@v2.github + if: env.GITEA_ACTIONS == 'true' + with: + host: ${{ secrets.NTFY_HOST }} + topic: ${{ secrets.NTFY_TOPIC }} + status: ${{ job.status }} + user: ${{ secrets.NTFY_USER }} + password: ${{ secrets.NTFY_PASSWORD }}