commit eb7cc9c2dc64afddb18599ee173f7562b3272078 Author: Yves Biener Date: Tue Nov 25 17:52:10 2025 +0100 Initial commit diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..2fe84ac --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,33 @@ +name: Release Zig Application +on: + release: + types: [published] + workflow_run: + workflows: [Zig Project Action] + types: [completed] + +jobs: + release: + name: Release zig project + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup zig installation + uses: mlugg/setup-zig@v2 + with: + version: master + - name: Lint check + run: zig fmt --check . + - name: Spell checking + uses: crate-ci/typos@v1.39.0 + with: + config: ./.typos-config + - name: Run tests + run: zig build --release=fast + - name: Release build artifacts + uses: akkuman/gitea-release-action@v1.3.2 + with: + files: |- + ./zig-out/bin/** diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..5ed2e8d --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,27 @@ +name: Zig Project Action +on: + push: + branches: [main] + pull_request: + types: [opened, synchronize, reopened] + +jobs: + run: + name: Lint, Spell-check and test zig project + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup zig installation + uses: mlugg/setup-zig@v2 + with: + version: master + - name: Lint check + run: zig fmt --check . + - name: Spell checking + uses: crate-ci/typos@v1.39.0 + with: + config: ./.typos-config + - name: Run tests + run: zig build test diff --git a/.typos-config b/.typos-config new file mode 100644 index 0000000..4188944 --- /dev/null +++ b/.typos-config @@ -0,0 +1,2 @@ +[files] +extend-exclude = ["build.zig.zon"]