build: added zig build interface for cross platform interface checking using comptime`
This commit is contained in:
parent
9a377fa209
commit
8062e417f2
1 changed files with 4 additions and 0 deletions
|
|
@ -42,6 +42,10 @@ pub fn build(b: *std.Build) void {
|
||||||
const run_tests = b.addRunArtifact(tests);
|
const run_tests = b.addRunArtifact(tests);
|
||||||
test_step.dependOn(&run_tests.step);
|
test_step.dependOn(&run_tests.step);
|
||||||
|
|
||||||
|
const interface_step = b.step("interface", "Check interface (compile tests only)");
|
||||||
|
const check_interface = b.addInstallArtifact(tests, .{});
|
||||||
|
interface_step.dependOn(&check_interface.step);
|
||||||
|
|
||||||
const run_step = b.step("run", "Run the app");
|
const run_step = b.step("run", "Run the app");
|
||||||
|
|
||||||
const run_cmd = b.addRunArtifact(exe);
|
const run_cmd = b.addRunArtifact(exe);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue