diff --git a/build.zig b/build.zig index ef7b33767c2867a43dff8c20f891ae793315af7c..94c589f78784a2eada5a451be57a9a5700aa12c2 100644 --- a/build.zig +++ b/build.zig @@ -2,9 +2,13 @@ const std = @import("std"); const deps = @import("./deps.zig"); pub fn build(b: *std.build.Builder) void { - const t = b.addTest("main.zig"); + const t = b.addTest(.{ + .root_source_file = .{ .path = "main.zig" }, + }); deps.addAllTo(t); + const run_t = b.addRunArtifact(t); + const t_step = b.step("run", "Run all the tests."); - t_step.dependOn(&t.step); + t_step.dependOn(&run_t.step); }