diff --git a/.github/workflows/zig-build.yaml b/.github/workflows/zig-build.yaml index f3876b3..3ead6ab 100644 --- a/.github/workflows/zig-build.yaml +++ b/.github/workflows/zig-build.yaml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: elerch/setup-zig@v3 with: - version: 0.12.0 + version: 0.13.0 - uses: elerch/zig-action-cache@v1.1.6 - name: Build project run: zig build --summary all diff --git a/build.zig b/build.zig index acd98ec..4aba367 100644 --- a/build.zig +++ b/build.zig @@ -19,7 +19,7 @@ pub fn build(b: *std.Build) !void { .name = "lambda-zig", // In this case the main source file is merely a path, however, in more // complicated build scripts, this could be a generated file. - .root_source_file = .{ .path = "src/lambda.zig" }, + .root_source_file = b.path("src/lambda.zig"), .target = target, .optimize = optimize, }); @@ -38,7 +38,7 @@ pub fn build(b: *std.Build) !void { // Creates a step for unit testing. This only builds the test executable // but does not run it. const main_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/lambda.zig" }, + .root_source_file = b.path("src/lambda.zig"), .target = target, .optimize = optimize, }); @@ -53,7 +53,7 @@ pub fn build(b: *std.Build) !void { const exe = b.addExecutable(.{ .name = "custom", - .root_source_file = .{ .path = "src/sample-main.zig" }, + .root_source_file = b.path("src/sample-main.zig"), .target = target, .optimize = optimize, });