Skip to content

Commit 438fc39

Browse files
committed
Fix macOS release build to use arm64 native architecture
macos-15 runner is arm64 but GOARCH was set to amd64, causing gobump to be cross-compiled and fail to execute, resulting in missing version in release zip filenames. Fixes #49
1 parent 0426251 commit 438fc39

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
build_for_macos:
4040
name: Build for MacOS
41-
runs-on: macos-15 # Use macos-15 to build darwin/amd64. macos-latest is arm64.
41+
runs-on: macos-latest
4242
steps:
4343
- name: Install build dependencies
4444
run: brew install coreutils
@@ -50,11 +50,11 @@ jobs:
5050
uses: actions/setup-go@v4
5151
with:
5252
go-version: ${{ env.GO_VERSION }}
53-
- name: Build amd64
53+
- name: Build arm64
5454
env:
5555
CGO_ENABLED: 1
5656
GOOS: darwin
57-
GOARCH: amd64
57+
GOARCH: arm64
5858
run: make release
5959
- name: Archive artifacts
6060
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)