mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-04-27 11:30:52 +00:00
73 lines
1.9 KiB
YAML
73 lines
1.9 KiB
YAML
|
# Make sure to check the documentation at http://goreleaser.com
|
||
|
version: 2
|
||
|
project_name: kcrypt-discovery-challenger
|
||
|
builds:
|
||
|
- env:
|
||
|
- CGO_ENABLED=0
|
||
|
- CGO_LDFLAGS="-ldl"
|
||
|
goos:
|
||
|
- linux
|
||
|
goarch:
|
||
|
- amd64
|
||
|
- arm64
|
||
|
binary: '{{ .ProjectName }}'
|
||
|
id: default
|
||
|
main: ./cmd/discovery/main.go
|
||
|
- env:
|
||
|
- CGO_ENABLED=0
|
||
|
- GOEXPERIMENT=boringcrypto
|
||
|
- CGO_LDFLAGS="-ldl"
|
||
|
goos:
|
||
|
- linux
|
||
|
goarch:
|
||
|
- amd64
|
||
|
binary: '{{ .ProjectName }}'
|
||
|
id: fips-amd64
|
||
|
main: ./cmd/discovery/main.go
|
||
|
hooks:
|
||
|
post:
|
||
|
- bash -c 'set -e; go version {{.Path}} | grep boringcrypto || (echo "boringcrypto not found" && exit 1)'
|
||
|
- env:
|
||
|
- CGO_ENABLED=0
|
||
|
- GOEXPERIMENT=boringcrypto
|
||
|
- CC=aarch64-linux-gnu-gcc
|
||
|
- CGO_LDFLAGS="-ldl"
|
||
|
goos:
|
||
|
- linux
|
||
|
goarch:
|
||
|
- arm64
|
||
|
binary: '{{ .ProjectName }}'
|
||
|
id: fips-arm64
|
||
|
main: ./cmd/discovery/main.go
|
||
|
hooks:
|
||
|
post:
|
||
|
- bash -c 'set -e; go version {{.Path}} | grep boringcrypto || (echo "boringcrypto not found" && exit 1)'
|
||
|
source:
|
||
|
enabled: true
|
||
|
name_template: '{{ .ProjectName }}-{{ .Tag }}-source'
|
||
|
archives:
|
||
|
- id: default-archive
|
||
|
ids:
|
||
|
- default
|
||
|
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
|
||
|
- id: fips-archive
|
||
|
ids:
|
||
|
- fips-arm64
|
||
|
- fips-amd64
|
||
|
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}-fips'
|
||
|
checksum:
|
||
|
name_template: '{{ .ProjectName }}-{{ .Tag }}-checksums.txt'
|
||
|
snapshot:
|
||
|
version_template: "{{ .Tag }}-next"
|
||
|
changelog:
|
||
|
sort: asc
|
||
|
filters:
|
||
|
exclude:
|
||
|
- '^docs:'
|
||
|
- '^test:'
|
||
|
- '^Merge pull request'
|
||
|
env:
|
||
|
- GOSUMDB=sum.golang.org
|
||
|
before:
|
||
|
hooks:
|
||
|
- go mod tidy
|