cloudflare-worker-deploy/.github/workflows/zig-build.yaml

30 lines
820 B
YAML
Raw Permalink Normal View History

2024-04-29 23:36:14 +00:00
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:
2024-06-08 17:44:17 +00:00
version: 0.13.0
- uses: elerch/zig-action-cache@v1.1.6
2024-04-29 23:36:14 +00:00
- 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: always() && env.GITEA_ACTIONS == 'true'
2024-04-29 23:36:14 +00:00
with:
host: ${{ secrets.NTFY_HOST }}
topic: ${{ secrets.NTFY_TOPIC }}
status: ${{ job.status }}
user: ${{ secrets.NTFY_USER }}
password: ${{ secrets.NTFY_PASSWORD }}