Skip to content

Commit 360b7b7

Browse files
committed
Run CI on more zig versions
1 parent c799ac5 commit 360b7b7

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,22 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
zig-version: ["0.12.1", "0.13.0", "master"]
18+
os: [ubuntu-latest]
19+
20+
runs-on: ${{ matrix.os }}
1521

1622
steps:
1723
- name: Check out repository
1824
uses: actions/checkout@v4
25+
1926
- name: Set up Zig
2027
uses: mlugg/setup-zig@v1
28+
with:
29+
version: ${{ matrix.zig-version }}
30+
2131
- name: Run `build`
22-
run: zig build
32+
run: zig build --summary all

build.zig.zon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.{
22
.name = "json-c",
33
.version = "0.17.0",
4+
.minimum_zig_version = "0.12.0",
45
.dependencies = .{
56
.upstream = .{
67
.url = "git+https://github.com/json-c/json-c?ref=json-c-0.17-20230812#b4c371fa0cbc4dcbaccc359ce9e957a22988fb34",
@@ -10,6 +11,7 @@
1011
.paths = .{
1112
"build.zig",
1213
"build.zig.zon",
14+
"LICENSE",
1315
"README.md",
1416
},
1517
}

0 commit comments

Comments
 (0)