2024-04-29 20:23:00 +00:00
|
|
|
name: Generic zig build
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
- '!zig-develop*'
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
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
|
2024-04-29 20:33:27 +00:00
|
|
|
run: zig build --summary all
|
2024-04-29 20:23:00 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: zig build test --summary all
|
|
|
|
- name: Notify
|
|
|
|
uses: elerch/action-notify-ntfy@v2
|
2024-04-29 20:33:27 +00:00
|
|
|
if: env.GITEA_ACTIONS == 'true'
|
2024-04-29 20:23:00 +00:00
|
|
|
with:
|
|
|
|
host: ${{ secrets.NTFY_HOST }}
|
|
|
|
topic: ${{ secrets.NTFY_TOPIC }}
|
|
|
|
user: ${{ secrets.NTFY_USER }}
|
|
|
|
password: ${{ secrets.NTFY_PASSWORD }}
|