Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 3b02741

Browse files
committed
include macos sdk bundled
1 parent 5954fad commit 3b02741

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
deno-version: v2.x
5959
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
6060
- run: cargo install cargo-zigbuild
61+
# https://github.com/rust-cross/cargo-zigbuild/issues/18#issuecomment-1076428026
62+
- name: macOS - Test build with SDKROOT
63+
run: |
64+
curl -sqL https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.3.sdk.tar.xz | tar -Jx -C /tmp/macsdk
6165
-
6266
name: Run GoReleaser
6367
uses: goreleaser/goreleaser-action@v6
@@ -69,6 +73,7 @@ jobs:
6973
args: release --clean
7074
env:
7175
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
SDKROOT: /tmp/macsdk
7277
- working-directory: ./js
7378
run: |
7479
make build

.goreleaser.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
version: 2
2-
universal_binaries:
3-
- replace: true
42
builds:
53
# You can have multiple builds defined as a yaml list
64
- #
@@ -22,11 +20,10 @@ builds:
2220
# Default: [ "x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-gnu", "aarch64-unknown-linux-gnu", "aarch64-apple-darwin" ]
2321
targets:
2422
- x86_64-unknown-linux-gnu
25-
- x86_64-apple-darwin
2623
- x86_64-pc-windows-gnu
27-
# TODO: https://github.com/ziglang/zig/issues/1349
28-
# - aarch64-unknown-linux-gnu
29-
# - aarch64-apple-darwin
24+
- x86_64-apple-darwin
25+
- aarch64-unknown-linux-gnu
26+
- aarch64-apple-darwin
3027

3128
flags:
3229
- --release

0 commit comments

Comments
 (0)