Skip to content

Commit 41cca22

Browse files
chrisbbreuerclaude
andcommitted
chore: add CI and release workflows
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2c61784 commit 41cca22

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
name: Test (${{ matrix.os }}, Zig ${{ matrix.zig-version }})
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macos-latest]
16+
zig-version: ['0.15.1', 'master']
17+
fail-fast: false
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: mlugg/setup-zig@v2
21+
with:
22+
version: ${{ matrix.zig-version }}
23+
- run: zig build
24+
- run: zig build test
25+
26+
lint:
27+
name: Format Check
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: mlugg/setup-zig@v2
32+
with:
33+
version: '0.15.1'
34+
- run: zig fmt --check .

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: mlugg/setup-zig@v2
17+
with:
18+
version: '0.15.1'
19+
- run: zig build
20+
- run: zig build test
21+
- name: Create Release
22+
uses: stacksjs/action-releaser@v1.2.9
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
zig-cache/
1+
simple
2+
test_io
3+
libroot.a
24
zig-out/
35
.zig-cache/
6+
zig-cache/
47
*.o
58
*.so
69
*.dylib

0 commit comments

Comments
 (0)