Skip to content

Commit 4af03a1

Browse files
authored
Merge pull request #10 from micro/claude/go-micro-chat-app-zK9Cv
Fix release workflow: cross-compile darwin/amd64 on arm64 runner
2 parents db7d75a + 1ca6f07 commit 4af03a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- os: macos-latest
2323
goos: darwin
2424
goarch: arm64
25-
- os: macos-13
25+
- os: macos-latest
2626
goos: darwin
2727
goarch: amd64
2828

@@ -43,6 +43,7 @@ jobs:
4343
GOOS: ${{ matrix.goos }}
4444
GOARCH: ${{ matrix.goarch }}
4545
CGO_ENABLED: '1'
46+
CC: ${{ matrix.goarch == 'amd64' && matrix.goos == 'darwin' && 'clang -arch x86_64' || '' }}
4647
run: go build -ldflags="-s -w" -o micro-chat-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/server/
4748

4849
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)