Skip to content

Commit dd2b50a

Browse files
committed
ci: use mlugg/setup-zig@v2, and specify Zig version in build.zig.zon
This new release of setup-zig allows determining the version of Zig to fetch based off of the `minimum_zig_version` specified in `build.zig.zon`, which means we only need to specify it in one place instead of three.
1 parent e546c75 commit dd2b50a

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

.github/workflows/CD.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919
with: { fetch-depth: 0 }
20-
- uses: mlugg/setup-zig@v1
21-
with:
22-
version: 0.14.0
20+
- uses: mlugg/setup-zig@v2
2321
- name: Build
2422
env:
2523
DEMO_SIGN_PUBKEY: ${{ secrets.SAR_DEMO_SIGN_PUBKEY }}

.github/workflows/CI.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ jobs:
2929
- name: Checkout
3030
uses: actions/checkout@v4
3131
with: { fetch-depth: 0 }
32-
- uses: mlugg/setup-zig@v1
33-
with:
34-
version: 0.14.0
32+
- uses: mlugg/setup-zig@v2
3533
- name: Build
3634
env:
3735
DEMO_SIGN_PUBKEY: ${{ secrets.SAR_DEMO_SIGN_PUBKEY }}

.github/workflows/CodeQL.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
uses: actions/checkout@v4
3333

3434
- name: Setup Zig Compiler
35-
uses: mlugg/setup-zig@v1
36-
with:
37-
version: 0.14.0
35+
uses: mlugg/setup-zig@v2
3836

3937
- name: Initialize CodeQL
4038
uses: github/codeql-action/init@v3

build.zig.zon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.name = .SourceAutoRecord,
33
.fingerprint = 0x624553be3189c0f7,
44
.version = "1.13.1",
5+
.minimum_zig_version = "0.14.0",
56
.paths = .{""},
67
.dependencies = .{
78
.x265 = .{

0 commit comments

Comments
 (0)