mirror of
https://github.com/BloopAI/setup-zig.git
synced 2026-08-23 12:18:33 +00:00
ci: add zig 0.11.0 (#62)
* 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>
This commit is contained in:
13
test/v0.11/build.zig
Normal file
13
test/v0.11/build.zig
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
5
test/v0.11/src/main.zig
Normal file
5
test/v0.11/src/main.zig
Normal file
@@ -0,0 +1,5 @@
|
||||
const debug = @import("std").debug;
|
||||
|
||||
test "it works" {
|
||||
debug.assert(1 == 1);
|
||||
}
|
||||
Reference in New Issue
Block a user