diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f8202f..fbd473a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,9 +11,9 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v3 - - uses: mlugg/setup-zig@v1 + - uses: mlugg/setup-zig@v2 with: - version: 0.14.0 + version: 0.15.1 - run: | zig build test zig build -Dtarget=x86-windows-gnu test @@ -22,9 +22,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v3 - - uses: mlugg/setup-zig@v1 + - uses: mlugg/setup-zig@v2 with: - version: 0.14.0 + version: 0.15.1 # Note that there's no testing for 32-bit on macos since offical support has been dropped - run: | zig build test @@ -33,9 +33,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: mlugg/setup-zig@v1 + - uses: mlugg/setup-zig@v2 with: - version: 0.14.0 + version: 0.15.1 - 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);