|
@@ -50,7 +50,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step {
|
|
case_step.dependOn(&verify.step);
|
|
case_step.dependOn(&verify.step);
|
|
}
|
|
}
|
|
|
|
|
|
- const cleanup = b.addRemoveDirTree(tmp_path);
|
|
|
|
|
|
+ const cleanup = b.addRemoveDirTree(.{ .src_path = .{ .owner = b, .sub_path = tmp_path } });
|
|
cleanup.step.dependOn(case_step);
|
|
cleanup.step.dependOn(case_step);
|
|
|
|
|
|
step.dependOn(&cleanup.step);
|
|
step.dependOn(&cleanup.step);
|
|
@@ -82,7 +82,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step {
|
|
const verify = CheckStep.create(b, exercises, stderr);
|
|
const verify = CheckStep.create(b, exercises, stderr);
|
|
verify.step.dependOn(&cmd.step);
|
|
verify.step.dependOn(&cmd.step);
|
|
|
|
|
|
- const cleanup = b.addRemoveDirTree(tmp_path);
|
|
|
|
|
|
+ const cleanup = b.addRemoveDirTree(.{ .src_path = .{ .owner = b, .sub_path = tmp_path } });
|
|
cleanup.step.dependOn(&verify.step);
|
|
cleanup.step.dependOn(&verify.step);
|
|
|
|
|
|
step.dependOn(&cleanup.step);
|
|
step.dependOn(&cleanup.step);
|
|
@@ -150,7 +150,7 @@ const CheckNamedStep = struct {
|
|
return self;
|
|
return self;
|
|
}
|
|
}
|
|
|
|
|
|
- fn make(step: *Step, _: std.Progress.Node) !void {
|
|
|
|
|
|
+ fn make(step: *Step, _: Step.MakeOptions) !void {
|
|
const b = step.owner;
|
|
const b = step.owner;
|
|
const self: *CheckNamedStep = @alignCast(@fieldParentPtr("step", step));
|
|
const self: *CheckNamedStep = @alignCast(@fieldParentPtr("step", step));
|
|
const ex = self.exercise;
|
|
const ex = self.exercise;
|
|
@@ -202,7 +202,7 @@ const CheckStep = struct {
|
|
return self;
|
|
return self;
|
|
}
|
|
}
|
|
|
|
|
|
- fn make(step: *Step, _: std.Progress.Node) !void {
|
|
|
|
|
|
+ fn make(step: *Step, _: Step.MakeOptions) !void {
|
|
const b = step.owner;
|
|
const b = step.owner;
|
|
const self: *CheckStep = @alignCast(@fieldParentPtr("step", step));
|
|
const self: *CheckStep = @alignCast(@fieldParentPtr("step", step));
|
|
const exercises = self.exercises;
|
|
const exercises = self.exercises;
|
|
@@ -325,7 +325,7 @@ const FailStep = struct {
|
|
return self;
|
|
return self;
|
|
}
|
|
}
|
|
|
|
|
|
- fn make(step: *Step, _: std.Progress.Node) !void {
|
|
|
|
|
|
+ fn make(step: *Step, _: Step.MakeOptions) !void {
|
|
const b = step.owner;
|
|
const b = step.owner;
|
|
const self: *FailStep = @alignCast(@fieldParentPtr("step", step));
|
|
const self: *FailStep = @alignCast(@fieldParentPtr("step", step));
|
|
|
|
|
|
@@ -368,7 +368,7 @@ const HealStep = struct {
|
|
return self;
|
|
return self;
|
|
}
|
|
}
|
|
|
|
|
|
- fn make(step: *Step, _: std.Progress.Node) !void {
|
|
|
|
|
|
+ fn make(step: *Step, _: Step.MakeOptions) !void {
|
|
const b = step.owner;
|
|
const b = step.owner;
|
|
const self: *HealStep = @alignCast(@fieldParentPtr("step", step));
|
|
const self: *HealStep = @alignCast(@fieldParentPtr("step", step));
|
|
|
|
|