-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(ci): add 0.11.0 Signed-off-by: Rui Chen <[email protected]> * Support zig 0.11 build system --------- Signed-off-by: Rui Chen <[email protected]> Co-authored-by: Rui Chen <[email protected]>
- Loading branch information
1 parent
c7b6cdd
commit 8dab702
Showing
5 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const debug = @import("std").debug; | ||
|
||
test "it works" { | ||
debug.assert(1 == 1); | ||
} |