Skip to content

Commit

Permalink
Make the example binaries run artifacts for easy testing
Browse files Browse the repository at this point in the history
  • Loading branch information
zadockmaloba committed Sep 27, 2024
1 parent f6efc23 commit 7f56705
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 @@ -258,8 +258,11 @@ pub fn build(b: *std.Build) !void {
t.linkLibC();
for (libs) |lib|
t.linkLibrary(lib);
t.linkLibC();
const install_test = b.addInstallArtifact(t, .{});
const run_test = b.addRunArtifact(t);
test_step.dependOn(&install_test.step);
test_step.dependOn(&run_test.step);
}
}

Expand Down

0 comments on commit 7f56705

Please sign in to comment.