Skip to content

added build.zig.zon

added build.zig.zon #8

Workflow file for this run

name: Release
on:
push:
branches: [ "master" ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
- run: zig fmt --check src/*.zig
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set env
run: |
echo "Version=$(cat build.zig.zon | grep -o -E '\b[0-9]+\.[0-9]+\.[0-9]+\b') >> $GITHUB_ENV"
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
- run: |
sudo apt install libgtk-3-0 libgtk-3-dev
zig build -Doptimize=ReleaseSmall
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: "${{ env.Version }}"
generate_release_notes: true
files: |
zig-out/bin/zigenity