Skip to content

Commit 9df3a83

Browse files
avdvachew22
authored andcommitted
Fix building release binary for darwin_amd64
Running the release job on macos-latest is using darwin_arm64, so cross compiling the binary to darwin_amd64. To make this work, either the build needs to run under Rosetta, or the build needs a C cross compiler targetting darwin_amd64 (otherwise CGO is disabled). Using the macos-13 runner fixes this problem by avoiding to cross compile.
1 parent fd91a53 commit 9df3a83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: darwin_amd64
3737
artifact: ibazel_darwin_amd64
38-
os: macos-latest
38+
os: macos-13
3939
build_flags: --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64_cgo
4040
# See comment below for more information on this flag.
4141
cpu_flag: --cpu=darwin_amd64

0 commit comments

Comments
 (0)