Skip to content

Commit

Permalink
fix: CI error due to missing run step (added step all-examples to bui…
Browse files Browse the repository at this point in the history
…ld and run ALL examples (for CI))
  • Loading branch information
chrischtel committed Feb 6, 2025
1 parent 506f14c commit 1acabfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ pub fn build(b: *std.Build) void {
.{ .file = "examples/json_logging.zig", .name = "example_4" },
};

const all_examples_step = b.step("all-examples", "Run all examples (for CI)");

{
for (examples) |example| {
const exe = b.addExecutable(.{
Expand All @@ -93,6 +95,7 @@ pub fn build(b: *std.Build) void {
run_step.dependOn(&run_cmd.step);

test_step.dependOn(&run_cmd.step);
all_examples_step.dependOn(&run_cmd.step);
}
}
}

0 comments on commit 1acabfa

Please sign in to comment.