diff options
author | Manlio Perillo <manlio.perillo@gmail.com> | 2023-05-13 11:59:15 +0200 |
---|---|---|
committer | Manlio Perillo <manlio.perillo@gmail.com> | 2023-05-14 17:21:59 +0200 |
commit | ede6671c27d7ede149bed0f0b8519abf2bc94a18 (patch) | |
tree | 82c7e11471b3f6252bb0730175c2cda671554f85 /build.zig | |
parent | 164df04618976f386dccb9e7a761d66cd6b97627 (diff) |
build: remove the install step in the normal build mode
Removing the install step will simplify the current code.
Copying the exercise executable to the zig-out directory can be done in
`ZiglingStep.
Closes #298
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -194,20 +194,13 @@ pub fn build(b: *Build) !void { return; } - // Run all exercises in a row + // Normal build mode: verifies all exercises according to the recommended + // order. const ziglings_step = b.step("ziglings", "Check all ziglings"); b.default_step = ziglings_step; var prev_step = &header_step.step; for (exercises) |ex| { - const build_step = ex.addExecutable(b, work_path); - - const skip_step = SkipStep.create(b, ex); - if (!ex.skip) - b.installArtifact(build_step) - else - b.getInstallStep().dependOn(&skip_step.step); - const verify_stepn = ZiglingStep.create(b, ex, work_path); verify_stepn.step.dependOn(prev_step); |