diff options
| author | David Czihak <git@dcz.at> | 2026-05-09 13:01:50 +0200 |
|---|---|---|
| committer | David Czihak <git@dcz.at> | 2026-05-09 13:01:50 +0200 |
| commit | 4b6f66fd512c254b5a82220dc77411fe391dd258 (patch) | |
| tree | 7d77d7966e9ad2e296986ea8cfeb607088028195 /examples/monorepo/packages/beta/build.zig | |
| parent | 64e9c56fc665972fdde5234c4fb2f2a882e237dc (diff) | |
Chore: Rework examples for thorough extension testing
Diffstat (limited to 'examples/monorepo/packages/beta/build.zig')
| -rw-r--r-- | examples/monorepo/packages/beta/build.zig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/monorepo/packages/beta/build.zig b/examples/monorepo/packages/beta/build.zig new file mode 100644 index 0000000..fa4c1cd --- /dev/null +++ b/examples/monorepo/packages/beta/build.zig @@ -0,0 +1,17 @@ +const std = @import("std"); + +pub fn build(b: *std.Build) void { + const target = b.standardTargetOptions(.{}); + const optimize = b.standardOptimizeOption(.{}); + + const lib_tests = b.addTest(.{ + .root_module = b.createModule(.{ + .root_source_file = b.path("src/lib.zig"), + .target = target, + .optimize = optimize, + }), + }); + const run_tests = b.addRunArtifact(lib_tests); + const test_step = b.step("test", "Run beta tests"); + test_step.dependOn(&run_tests.step); +} |
