-
I want to build and release multi-arch binaries for amd64(_v1) as well as arm64, building them on amd64. goreleaser v2.4.7 installed using builds:
- id: default
main: ./cmd/xxx
binary: xxx
targets:
- linux_amd64_v1
- linux_arm64
tags:
- netgo
- osusergo
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser'
env:
- CGO_ENABLED=1
end }}
overrides:
- goos: linux
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc From manual building I know what I need not only to set My problem now is that obviously the overrides get completely ignored, and the build fails with the probably well-known "no such instruction" assembler errors. What am I overlooking and doing wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
oh, seems like a bug... looking into it |
Beta Was this translation helpful? Give feedback.
this should fix it!
#5298