add release mode tests and package/publish
Some checks failed
Generic zig build / build (push) Failing after 31s

This commit is contained in:
Emil Lerch 2025-04-10 10:41:32 -07:00
parent 776eb870a9
commit d989a48501
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -4,7 +4,6 @@ on:
push: push:
branches: branches:
- '*' - '*'
- '!zig-develop*'
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -18,6 +17,15 @@ jobs:
run: zig build --summary all run: zig build --summary all
- name: Run tests - name: Run tests
run: zig build test --summary all 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 - name: Notify
uses: elerch/action-notify-ntfy@v2.github uses: elerch/action-notify-ntfy@v2.github
if: always() && env.GITEA_ACTIONS == 'true' if: always() && env.GITEA_ACTIONS == 'true'