Skip to content

Commit ed619c0

Browse files
committed
Add dependencies on install step to run from install directory
1 parent 046973a commit ed619c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ pub fn build(b: *std.Build) void {
256256
const run_tests_step = b.step("run-tests", "Run Janet test suite scripts");
257257
for (test_scripts) |test_script| {
258258
const run_test_cmd = b.addRunArtifact(janet_exe);
259+
run_test_cmd.dependOn(b.getInstallStep());
259260
run_test_cmd.addFileArg(b.path(test_script));
260261
run_test_cmd.expectExitCode(0);
261262
run_test_cmd.stdio = .inherit;
@@ -265,6 +266,7 @@ pub fn build(b: *std.Build) void {
265266
const check_examples_step = b.step("examples", "Check if example scripts compile");
266267
for (example_scripts) |example_script| {
267268
const check_example_cmd = b.addRunArtifact(janet_exe);
269+
check_example_cmd.dependOn(b.getInstallStep());
268270
check_example_cmd.addArg("-k");
269271
check_example_cmd.addFileArg(b.path(example_script));
270272
check_example_cmd.stdio = .inherit;

0 commit comments

Comments
 (0)