add release mode tests and package/publish
Some checks failed
Generic zig build / build (push) Failing after 31s
Some checks failed
Generic zig build / build (push) Failing after 31s
This commit is contained in:
parent
776eb870a9
commit
d989a48501
1 changed files with 9 additions and 1 deletions
10
.github/workflows/build.yaml
vendored
10
.github/workflows/build.yaml
vendored
|
@ -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'
|
||||||
|
|
Loading…
Add table
Reference in a new issue