smithy/.github/workflows/zig-build.yaml

30 lines
808 B
YAML
Raw Normal View History

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:
version: 0.12.0
- 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-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 }}
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 }}