From 0731e00217e67843e11d25860117a1e35615f074 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 4 Nov 2022 23:39:24 +0800 Subject: [PATCH 1/2] ci: test for zig 0.10 --- .github/workflows/zig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/zig.yaml b/.github/workflows/zig.yaml index 1630a154..48d5bdd2 100644 --- a/.github/workflows/zig.yaml +++ b/.github/workflows/zig.yaml @@ -52,7 +52,7 @@ jobs: - name: Install ziglang uses: goto-bus-stop/setup-zig@v1 with: - version: 0.9.1 + version: 0.10.0 - name: Cache NPM dependencies uses: actions/cache@v3 with: From 32cf02e633030bc46ec963d47b0e11dd17f89cda Mon Sep 17 00:00:00 2001 From: LongYinan Date: Sat, 5 Nov 2022 00:11:23 +0800 Subject: [PATCH 2/2] fix(cli): compatible with zig 0.10.0 --- cli/src/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/build.ts b/cli/src/build.ts index 82803476..2a99dc6d 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -30,7 +30,7 @@ const ZIG_PLATFORM_TARGET_MAP = { // 'x86_64-pc-windows-gnu': 'x86_64-windows-gnu', // https://github.com/ziglang/zig/issues/1759 // 'x86_64-unknown-freebsd': 'x86_64-freebsd', - 'x86_64-apple-darwin': 'x86_64-macos-gnu', + 'x86_64-apple-darwin': 'x86_64-macos', 'aarch64-apple-darwin': 'aarch64-macos', 'aarch64-unknown-linux-gnu': 'aarch64-linux-gnu', 'aarch64-unknown-linux-musl': 'aarch64-linux-musl',