const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); const exe_1 = b.addExecutable(.{ .name = "1-Multiples_of_3_or_5", .root_source_file = b.path("src/1-Multiples_of_3_or_5.zig"), .target = target, .optimize = optimize, }); b.installArtifact(exe_1); const exe_1_unit_tests = b.addTest(.{ .root_source_file = b.path("src/1-Multiples_of_3_or_5.zig"), .target = target, .optimize = optimize, }); const run_exe_1_unit_tests = b.addRunArtifact(exe_1_unit_tests); // Similar to creating the run step earlier, this exposes a `test` step to // the `zig build --help` menu, providing a way for the user to request // running the unit tests. const test_step = b.step("test", "Run unit tests"); test_step.dependOn(&run_exe_1_unit_tests.step); }