Skip to content

Commit

Permalink
Create build.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithBrown39423 authored Jun 11, 2024
1 parent 11b0208 commit 9bec6ea
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const std = @import("std");

pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});

const zuid_mod = b.addModule("zuid", .{
.root_source_file = b.path("src/zuid.zig"),
});

const test_step = b.step("test", "Run tests for v1, v3, v4, v5, v6, v7, and v8 UUIDs.");
const tests = b.addTest(.{
.root_source_file = b.path("src/testing.zig"),
.target = target,
.optimize = optimize,
});

tests.root_module.addImport("zuid", zuid_mod);
const run_tests = b.addRunArtifact(tests);
test_step.dependOn(&run_tests.step);
}

0 comments on commit 9bec6ea

Please sign in to comment.