Skip to content

Commit

Permalink
Merge pull request #9 from speed2exe/fix-ci
Browse files Browse the repository at this point in the history
ci: use 0.12.0
  • Loading branch information
speed2exe authored Apr 29, 2024
2 parents f65ce35 + 5266ae8 commit 7368709
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 7368709

Please sign in to comment.