Fix Zig test build errors
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kayomn 2024-07-24 00:56:14 +01:00
parent 09872990a1
commit f49906c714
3 changed files with 3 additions and 4 deletions

View File

@ -21,5 +21,5 @@ steps:
- wget https://ziglang.org/download/$${ZIG_VERSION}/zig-linux-x86_64-$${ZIG_VERSION}.tar.xz
- tar -xf zig-linux-x86_64-$${ZIG_VERSION}.tar.xz
- export PATH=$PATH:$(pwd)/zig-linux-x86_64-$${ZIG_VERSION}
- zig build
- zig build test
- zig build tests
- zig build demos

View File

@ -21,6 +21,5 @@
"**/Thumbs.db": true,
"**/.zig-cache": true,
"zig-out": true,
".drone.yml": true,
},
}

View File

@ -59,7 +59,7 @@ const Project = struct {
}
pub fn find_tests(self: Project, b: *std.Build) !void {
const tests = b.step("test", "Build and run tests");
const tests = b.step("tests", "Build and run tests");
for (self.imports.items) |import| {
tests.dependOn(&b.addRunArtifact(b.addTest(.{