Compare commits

..

No commits in common. "d989a4850156db492ba801741dd68a32df9a8e27" and "2fd37ab0577a36ed582efc9388b1551da0929e60" have entirely different histories.

View file

@ -1,37 +0,0 @@
name: Generic zig build
on:
workflow_dispatch:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: elerch/setup-zig@v3
with:
version: 0.14.0
- uses: elerch/zig-action-cache@v1.1.6
- name: Build project
run: zig build --summary all
- name: Run tests
run: zig build test --summary all
- name: Run tests (release mode)
run: zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux test --summary all
- name: Package for release
run: zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux
- name: Publish build
run: |
curl --user ${{ github.actor }}:${{ secrets.PACKAGE_PUSH }} \
--upload-file ${{ runner.temp }}/zig-out/bin/syncthing_events \
https://git.lerch.org/api/packages/lobo/generic/aws-sdk-with-models/${{ github.sha }}/syncthing_events-x86_64-linux-${{ github.sha }}
- name: Notify
uses: elerch/action-notify-ntfy@v2.github
if: always() && env.GITEA_ACTIONS == 'true'
with:
host: ${{ secrets.NTFY_HOST }}
topic: ${{ secrets.NTFY_TOPIC }}
status: ${{ job.status }}
user: ${{ secrets.NTFY_USER }}
password: ${{ secrets.NTFY_PASSWORD }}