2024-04-29 20:23:00 +00:00
|
|
|
name: Generic zig build
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
- '!zig-develop*'
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-04-29 20:56:28 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-04-29 20:23:00 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: elerch/setup-zig@v3
|
|
|
|
with:
|
2024-06-08 16:56:23 +00:00
|
|
|
version: 0.13.0
|
2024-05-01 03:17:50 +00:00
|
|
|
- uses: elerch/zig-action-cache@v1.1.6
|
2024-04-29 20:23:00 +00:00
|
|
|
- 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
|
2024-04-29 21:15:29 +00:00
|
|
|
uses: elerch/action-notify-ntfy@v2.github
|
2024-05-01 05:41:32 +00:00
|
|
|
if: always() && env.GITEA_ACTIONS == 'true'
|
2024-04-29 20:23:00 +00:00
|
|
|
with:
|
|
|
|
host: ${{ secrets.NTFY_HOST }}
|
|
|
|
topic: ${{ secrets.NTFY_TOPIC }}
|
2024-04-29 21:15:29 +00:00
|
|
|
status: ${{ job.status }}
|
2024-04-29 20:23:00 +00:00
|
|
|
user: ${{ secrets.NTFY_USER }}
|
|
|
|
password: ${{ secrets.NTFY_PASSWORD }}
|