Skip to content

Commit 7797593

Browse files
committed
ci: add basic CI
1 parent ef7eba4 commit 7797593

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
zig-version: ["0.14.0"]
18+
os:
19+
- ubuntu-latest
20+
# - macos-latest # Does not build yet
21+
# - windows-latest # Does not pass tests
22+
runs-on: ${{ matrix.os }}
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Zig
28+
uses: mlugg/setup-zig@v1
29+
with:
30+
version: ${{ matrix.zig-version }}
31+
32+
- name: Check Formatting
33+
run: zig fmt --ast-check --check .
34+
35+
- name: Build
36+
run: zig build --summary all
37+
38+
- name: Test
39+
run: zig build test --summary all

0 commit comments

Comments
 (0)