Skip to content

Commit 53bb0b8

Browse files
committed
ci: enable CGO and add Zig setup
- Remove CGO_ENABLED=0 and enable CGO_ENABLED=1 in .goreleaser.yml - Install Zig via setup-zig action in release workflow - Set CC=zig cc in CI env for cross-platform builds
1 parent 616eaee commit 53bb0b8

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.goreleaser.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,11 @@ before:
33
hooks:
44
- go mod tidy
55
builds:
6-
- binary: grab
6+
- id: grab
7+
binary: grab
78
main: ./cmd/grab
8-
goos:
9-
- darwin
10-
- linux
11-
- windows
12-
goarch:
13-
- amd64
14-
- arm64
15-
env:
16-
- CGO_ENABLED=0
9+
goos: [darwin, linux, windows]
10+
goarch: [amd64, arm64]
1711
ldflags:
1812
- -s -w
1913
- -X github.com/epilande/codegrab/internal/utils.Version={{.Version}}

0 commit comments

Comments
 (0)