diff options
| author | Patrick | 2026-05-14 22:11:46 +0000 |
|---|---|---|
| committer | Patrick | 2026-05-14 22:11:46 +0000 |
| commit | de2426d29dcbe32227e0aa42ac6747e77d97a6f6 (patch) | |
| tree | 95f2289b6003901422772e470acb97cf590652f8 /build.zig | |
| parent | 0137b78397e7f50ed00d034838ffb969d1592d09 (diff) | |
| download | reactive-zig-de2426d29dcbe32227e0aa42ac6747e77d97a6f6.tar.gz reactive-zig-de2426d29dcbe32227e0aa42ac6747e77d97a6f6.zip | |
update
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -12,9 +12,15 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }), }); - b.installArtifact(exe); - const exe_tests = b.addTest(.{ .root_module = exe.root_module }); - b.step("test", "Run tests").dependOn(&b.addRunArtifact(exe_tests).step); + const exe_run = b.addRunArtifact(exe); + const exe_run_step = b.step("run", "Run"); + exe_run_step.dependOn(&exe_run.step); + exe_run.step.dependOn(b.getInstallStep()); + if (b.args) |args| exe_run.addArgs(args); + + const exe_test = b.addTest(.{ .root_module = exe.root_module }); + const exe_test_step = b.step("test", "Run tests"); + exe_test_step.dependOn(&b.addRunArtifact(exe_test).step); } |
