Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
8 changes: 3 additions & 5 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading