Do not use CGO_ENABLED

Seems like it builds the boringcrypto without it with no issues

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka 2025-04-11 18:04:46 +02:00
parent 457b9e75f5
commit 125ca467f5
No known key found for this signature in database
GPG Key ID: FF934753A9D6AC56

View File

@ -1,5 +1,6 @@
# Make sure to check the documentation at http://goreleaser.com # Make sure to check the documentation at http://goreleaser.com
version: 2 version: 2
project_name: kcrypt-discovery-challenger
builds: builds:
- env: - env:
- CGO_ENABLED=0 - CGO_ENABLED=0
@ -11,8 +12,9 @@ builds:
- arm64 - arm64
binary: '{{ .ProjectName }}' binary: '{{ .ProjectName }}'
id: default id: default
main: ./cmd/discovery/main.go
- env: - env:
- CGO_ENABLED=1 - CGO_ENABLED=0
- GOEXPERIMENT=boringcrypto - GOEXPERIMENT=boringcrypto
- CGO_LDFLAGS="-ldl" - CGO_LDFLAGS="-ldl"
goos: goos:
@ -21,8 +23,9 @@ builds:
- amd64 - amd64
binary: '{{ .ProjectName }}' binary: '{{ .ProjectName }}'
id: fips-amd64 id: fips-amd64
main: ./cmd/discovery/main.go
- env: - env:
- CGO_ENABLED=1 - CGO_ENABLED=0
- GOEXPERIMENT=boringcrypto - GOEXPERIMENT=boringcrypto
- CC=aarch64-linux-gnu-gcc - CC=aarch64-linux-gnu-gcc
- CGO_LDFLAGS="-ldl" - CGO_LDFLAGS="-ldl"
@ -32,6 +35,7 @@ builds:
- arm64 - arm64
binary: '{{ .ProjectName }}' binary: '{{ .ProjectName }}'
id: fips-arm64 id: fips-arm64
main: ./cmd/discovery/main.go
source: source:
enabled: true enabled: true
name_template: '{{ .ProjectName }}-{{ .Tag }}-source' name_template: '{{ .ProjectName }}-{{ .Tag }}-source'