8dab702865
* chore(ci): add 0.11.0 Signed-off-by: Rui Chen <rui@chenrui.dev> * Support zig 0.11 build system --------- Signed-off-by: Rui Chen <rui@chenrui.dev> Co-authored-by: Rui Chen <rui@chenrui.dev>
14 lines
398 B
Zig
14 lines
398 B
Zig
const Build = @import("std").Build;
|
|
|
|
pub fn build(b: *Build) void {
|
|
const optimize = b.standardOptimizeOption(.{});
|
|
const test_build = b.addTest(.{
|
|
.root_source_file = .{ .path = "src/main.zig" },
|
|
.optimize = optimize,
|
|
});
|
|
const run_test = b.addRunArtifact(test_build);
|
|
|
|
const test_step = b.step("test", "Run the app");
|
|
test_step.dependOn(&run_test.step);
|
|
}
|