Skip to content

Commit f306c6b

Browse files
committed
install examples, make install run ruby example
1 parent 3fa2359 commit f306c6b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,8 @@ pub fn build(b: *std.Build) !void {
11281128
});
11291129
example_c.linkLibrary(mruby_lib);
11301130

1131+
b.installArtifact(example_c);
1132+
11311133
const run = b.addRunArtifact(example_c);
11321134
run.expectExitCode(42);
11331135
run.expectStdOutEqual(
@@ -1153,6 +1155,8 @@ pub fn build(b: *std.Build) !void {
11531155
\\
11541156
);
11551157

1158+
b.getInstallStep().dependOn(&example_ruby.step);
1159+
11561160
const step = b.step("example-rb", "Run src/example.rb");
11571161
step.dependOn(&example_ruby.step);
11581162
}
@@ -1168,6 +1172,8 @@ pub fn build(b: *std.Build) !void {
11681172
{
11691173
example_zig.root_module.addImport("mruby", module);
11701174

1175+
b.installArtifact(example_zig);
1176+
11711177
const run = b.addRunArtifact(example_zig);
11721178

11731179
const step = b.step("example-zig", "Run src/example.zig");

0 commit comments

Comments
 (0)