Skip to content

goreleaser: build with CGO+zig cross for linux/windows, native macos for darwin#681

Merged
parkan merged 3 commits into
mainfrom
fix/goreleaser-cgo-cross
Jul 13, 2026
Merged

goreleaser: build with CGO+zig cross for linux/windows, native macos for darwin#681
parkan merged 3 commits into
mainfrom
fix/goreleaser-cgo-cross

Conversation

@parkan

@parkan parkan commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

CGO_ENABLED=0 no longer compiles: cmd/wallet transitively pulls blst via go-synapse/signer, and blst's rb_tree.go needs the CGO-only Message symbol.

Matrix split: ubuntu-latest builds linux+windows via zig cc (single portable libc, no mingw needed); macos-latest builds darwin natively since zig doesn't ship the macOS SDK and prometheus/client_golang needs mach headers. Both runners write to the same release via release.mode: keep-existing with separate checksum filenames.

@parkan parkan force-pushed the fix/goreleaser-cgo-cross branch from fdef77f to 9ff0568 Compare July 13, 2026 10:14
@parkan parkan force-pushed the fix/goreleaser-cgo-cross branch from 9ff0568 to 1d0abd3 Compare July 13, 2026 10:21
@parkan parkan merged commit 6b2dd74 into main Jul 13, 2026
1 check passed
@parkan parkan deleted the fix/goreleaser-cgo-cross branch July 13, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant