summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-07-07 14:37:51 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-07-07 14:37:51 +0500
commit5d010fb632964dcf1191f548a07eb1a0dcb83c41 (patch)
tree835a1f29029fa5a2ead2197b1c2bafac39c1672a
parent624514032993b51e88b2a72c86dad49f817b6397 (diff)
Added a run step
-rw-r--r--build.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index ea91df6..846f02f 100644
--- a/build.zig
+++ b/build.zig
@@ -25,4 +25,11 @@ pub fn build(b: *std.Build) void {
b.installArtifact(exe);
+
+ const run_step = b.step("run", "Run the app");
+ const run_cmd = b.addRunArtifact(exe);
+ run_step.dependOn(&run_cmd.step);
+ if (b.args) |args| {
+ run_cmd.addArgs(args);
+ }
}