add github/gitea action
All checks were successful
Generic zig build / build (push) Successful in 12s
All checks were successful
Generic zig build / build (push) Successful in 12s
This commit is contained in:
parent
1e534201c4
commit
79e77c40eb
27
.github/workflows/zig-build.yaml
vendored
Normal file
27
.github/workflows/zig-build.yaml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
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
|
||||
run: zig build
|
||||
- name: Run tests
|
||||
run: zig build test --summary all
|
||||
- name: Notify
|
||||
uses: elerch/action-notify-ntfy@v2
|
||||
if: ${{ github.env.GITEA_ACTIONS == 'true' }}
|
||||
with:
|
||||
host: ${{ secrets.NTFY_HOST }}
|
||||
topic: ${{ secrets.NTFY_TOPIC }}
|
||||
user: ${{ secrets.NTFY_USER }}
|
||||
password: ${{ secrets.NTFY_PASSWORD }}
|
Loading…
Reference in New Issue
Block a user