Skip to content

Commit 9e4f089

Browse files
0.15.0 (#15)
* upgrade to zig 15.1 * update zig version in CI * ci: upgrade mlugg/setup-zig to v2 --------- Co-authored-by: Isaac Van Doren <[email protected]>
1 parent f894011 commit 9e4f089

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: windows-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
- uses: mlugg/setup-zig@v1
14+
- uses: mlugg/setup-zig@v2
1515
with:
16-
version: 0.14.0
16+
version: 0.15.1
1717
- run: |
1818
zig build test
1919
zig build -Dtarget=x86-windows-gnu test
@@ -22,9 +22,9 @@ jobs:
2222
runs-on: macos-latest
2323
steps:
2424
- uses: actions/checkout@v3
25-
- uses: mlugg/setup-zig@v1
25+
- uses: mlugg/setup-zig@v2
2626
with:
27-
version: 0.14.0
27+
version: 0.15.1
2828
# Note that there's no testing for 32-bit on macos since offical support has been dropped
2929
- run: |
3030
zig build test
@@ -33,9 +33,9 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- uses: actions/checkout@v3
36-
- uses: mlugg/setup-zig@v1
36+
- uses: mlugg/setup-zig@v2
3737
with:
38-
version: 0.14.0
38+
version: 0.15.1
3939
- run: |
4040
zig build test
4141
zig build -Dtarget=x86-linux-gnu test

build.zig

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ pub fn build(b: *std.Build) void {
44
const target = b.standardTargetOptions(.{});
55
const optimize = b.standardOptimizeOption(.{});
66

7-
_ = b.addModule("zig-stable-array", .{
8-
.root_source_file = b.path("stable_array.zig"),
9-
});
7+
_ = b.addModule("zig-stable-array", .{ .root_source_file = b.path("stable_array.zig") });
108

11-
const lib_unit_tests = b.addTest(.{
9+
const lib_unit_tests = b.addTest(.{ .root_module = b.createModule(.{
1210
.root_source_file = b.path("stable_array.zig"),
1311
.target = target,
1412
.optimize = optimize,
15-
});
13+
}) });
1614
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
1715
const test_step = b.step("test", "Run unit tests");
1816
test_step.dependOn(&run_lib_unit_tests.step);

0 commit comments

Comments
 (0)