From ef5b793882c60ff3d9f3e088fc47758e8ec5a2bc Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sat, 8 Jun 2024 10:01:40 -0700 Subject: [PATCH] upgrade to zig 0.13.0 --- .github/workflows/zig-build.yaml | 2 +- build.zig | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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, });