diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f8202f..7246b8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - uses: mlugg/setup-zig@v1 with: - version: 0.14.0 + version: 0.15.0 - run: | zig build test zig build -Dtarget=x86-windows-gnu test @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v3 - uses: mlugg/setup-zig@v1 with: - version: 0.14.0 + version: 0.15.0 # Note that there's no testing for 32-bit on macos since offical support has been dropped - run: | zig build test @@ -35,7 +35,7 @@ jobs: - uses: actions/checkout@v3 - uses: mlugg/setup-zig@v1 with: - version: 0.14.0 + version: 0.15.0 - run: | zig build test zig build -Dtarget=x86-linux-gnu test diff --git a/build.zig b/build.zig index 2302ef9..870cb40 100644 --- a/build.zig +++ b/build.zig @@ -4,15 +4,13 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); - _ = b.addModule("zig-stable-array", .{ - .root_source_file = b.path("stable_array.zig"), - }); + _ = b.addModule("zig-stable-array", .{ .root_source_file = b.path("stable_array.zig") }); - const lib_unit_tests = b.addTest(.{ + const lib_unit_tests = b.addTest(.{ .root_module = b.createModule(.{ .root_source_file = b.path("stable_array.zig"), .target = target, .optimize = optimize, - }); + }) }); const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests); const test_step = b.step("test", "Run unit tests"); test_step.dependOn(&run_lib_unit_tests.step);