Fix CWD path usage in build script
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kayomn 2024-07-25 21:13:52 +01:00
parent 5674867adf
commit 165c3fe071
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ const Project = struct {
pub fn find_demos(self: Project, b: *std.Build) !void {
const demos = b.step("demos", "Build demos");
var dir = try std.fs.cwd().openDir("demos/", .{
var dir = try std.fs.cwd().openDir(b.path("demos/").getPath(b), .{
.iterate = true,
});

View File

@ -2,8 +2,6 @@ const gfx = @import("./gfx.zig");
pub const black = greyscale(0);
pub const white = greyscale(1);
pub fn greyscale(v: f32) gfx.Color {
return .{v, v, v, 1};
}
@ -11,3 +9,5 @@ pub fn greyscale(v: f32) gfx.Color {
pub fn rgb(r: f32, g: f32, b: f32) gfx.Color {
return .{r, g, b, 1};
}
pub const white = greyscale(1);