aboutsummaryrefslogtreecommitdiff
path: root/examples/monorepo/packages/alpha/build.zig
blob: 9ec95531984bf14aa7adbbc01477cb910bd6d42d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 alpha tests");
    test_step.dependOn(&run_tests.step);
}