diff --git a/.github/workflows/integrations.yml b/.github/workflows/integrations.yml index 869ec39..11fa623 100644 --- a/.github/workflows/integrations.yml +++ b/.github/workflows/integrations.yml @@ -20,7 +20,7 @@ jobs: - name: install zig run: | - ZIG_VERSION=0.12.0-dev.3291+17bad9f88 + ZIG_VERSION=0.12.0 wget https://ziglang.org/builds/zig-linux-x86_64-$ZIG_VERSION.tar.xz tar xf zig-linux-x86_64-$ZIG_VERSION.tar.xz mv zig-linux-x86_64-$ZIG_VERSION $HOME/zig-build diff --git a/build.zig b/build.zig index d4f16fc..f6c942f 100644 --- a/build.zig +++ b/build.zig @@ -6,13 +6,13 @@ pub fn build(b: *std.Build) void { }); // -Dtest-filter="..." - const test_filter = b.option([]const u8, "test-filter", "Filter for tests to run"); + const test_filter = b.option([]const []const u8, "test-filter", "Filter for tests to run"); // zig build unit_test const unit_tests = b.addTest(.{ .root_source_file = .{ .path = "./src/myzql.zig" }, }); - if (test_filter) |t| unit_tests.filters = &.{t}; + if (test_filter) |t| unit_tests.filters = t; // zig build [install] b.installArtifact(unit_tests); @@ -27,7 +27,7 @@ pub fn build(b: *std.Build) void { .root_source_file = .{ .path = "./integration_tests/main.zig" }, }); integration_tests.root_module.addImport("myzql", myzql); - if (test_filter) |t| integration_tests.filters = &.{t}; + if (test_filter) |t| integration_tests.filters = t; // zig build [install] b.installArtifact(integration_tests);