From 3a1428cd2a1e3201d29867264c04c9aa2cc04c52 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sat, 8 Jun 2024 11:07:29 -0700 Subject: [PATCH] upgrade to zig 0.13.0 --- .gitea/workflows/build.yaml | 4 ++-- .gitignore | 1 + build.zig | 4 ++-- build.zig.zon | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index dd6b447..e119773 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -5,10 +5,10 @@ env: ACTIONS_RUNTIME_TOKEN: ${{ secrets.GITHUB_TOKEN }} ACTIONS_RUNTIME_URL: ${{ env.GITHUB_SERVER_URL }}/api/actions_pipeline/ jobs: - build-zig-0.11.0-amd64-host: + build: runs-on: ubuntu-latest env: - ZIG_VERSION: 0.12.0 + ZIG_VERSION: 0.13.0 ARCH: x86_64 steps: - name: Check out repository code diff --git a/.gitignore b/.gitignore index dd9a122..6e402a6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ core zig-cache zig-out zig-cache +.zig-cache diff --git a/build.zig b/build.zig index b75c8b5..3eb2e58 100644 --- a/build.zig +++ b/build.zig @@ -20,7 +20,7 @@ pub fn build(b: *std.Build) !void { .name = "universal-lambda-example", // 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/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); @@ -64,7 +64,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 unit_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); diff --git a/build.zig.zon b/build.zig.zon index 8bbebd4..df79e88 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -4,8 +4,8 @@ .dependencies = .{ .@"universal-lambda-zig" = .{ - .url = "https://git.lerch.org/lobo/universal-lambda-zig/archive/f3d80b4afe8c13031b6cff051e93deaeadb1d268.tar.gz", - .hash = "122093d59b28dcd0201eaa1587ca78e11c06fb563b2cb9b554aaa5f7bab0ae34432e", + .url = "https://git.lerch.org/lobo/universal-lambda-zig/archive/562fd85dfbc3f7c056ca5a6e1d2c07863fbbf304.tar.gz", + .hash = "1220a3807d02bbefa12977795e0a2c27849c77b8ec4d866803692fd311ca49bdef36", }, }, .paths = .{