Skip to content

Commit 8a7c4f0

Browse files
committed
goreleaser: Build macos build separately
As goreleaser doesn't support CGO easily.
1 parent a2bfbea commit 8a7c4f0

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.goreleaser.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,30 @@ before:
55
- go mod tidy
66
- go generate ./...
77
builds:
8-
- goos:
8+
- binary: git-auto-sync
9+
id: git-auto-sync
10+
env:
11+
- CGO_ENABLED=0
12+
goos:
913
- linux
1014
- windows
15+
goarch:
16+
- amd64
17+
- arm
18+
- arm64
19+
20+
# Macos build needs to be built on macos
21+
# https://github.com/rjeczalik/notify/issues/177
22+
- binary: git-auto-sync
23+
id: git-auto-sync-macos
24+
env:
25+
- CGO_ENABLED=1
26+
- CC=clang
27+
- CXX=clang++
28+
goos:
1129
- darwin
30+
goarch:
31+
- amd64
1232
archives:
1333
- replacements:
1434
darwin: Darwin

0 commit comments

Comments
 (0)