Initial commit
This commit is contained in:
27
.gitea/workflows/release.yaml
Normal file
27
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
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@v1
|
||||||
|
with:
|
||||||
|
version: 0.13.0
|
||||||
|
- 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/**
|
||||||
27
.gitea/workflows/test.yaml
Normal file
27
.gitea/workflows/test.yaml
Normal file
@@ -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@v1
|
||||||
|
with:
|
||||||
|
version: 0.13.0
|
||||||
|
- name: Lint check
|
||||||
|
run: zig fmt --check .
|
||||||
|
- name: Spell checking
|
||||||
|
uses: crate-ci/typos@v1.25.0
|
||||||
|
with:
|
||||||
|
config: ./.typos-config
|
||||||
|
- name: Run tests
|
||||||
|
run: zig build test
|
||||||
2
.typos-config
Normal file
2
.typos-config
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[files]
|
||||||
|
extend-exclude = []
|
||||||
Reference in New Issue
Block a user