From ed34903086bfbf38f1bd0250f86aa0829944c169 Mon Sep 17 00:00:00 2001 From: Yves Biener Date: Sun, 7 Jun 2026 10:14:31 +0200 Subject: [PATCH] Initial commit --- .gitea/workflows/release.yaml | 30 ++++++++++++++++++++++++++++++ .gitea/workflows/test.yaml | 27 +++++++++++++++++++++++++++ .typos-config | 2 ++ 3 files changed, 59 insertions(+) create mode 100644 .gitea/workflows/release.yaml create mode 100644 .gitea/workflows/test.yaml create mode 100644 .typos-config diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..0bbdecf --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,30 @@ +name: Release Zig Application +on: + release: + types: [published] + +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: https://codeberg.org/mlugg/setup-zig@v2 + with: + version: latest + - name: Lint check + run: zig fmt --check . + - name: Spell checking + uses: crate-ci/typos@v1.47.2 + 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..2bd7f69 --- /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: https://codeberg.org/mlugg/setup-zig@v2 + with: + version: latest + - name: Lint check + run: zig fmt --check . + - name: Spell checking + uses: crate-ci/typos@v1.47.2 + 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"]