Jan Dittberner
7837164e6e
- build PIE binaries using goreleaser - add snapshot target to Makefile - add -trimpath option to go build
72 lines
1.4 KiB
YAML
72 lines
1.4 KiB
YAML
# Make sure to check the documentation at https://goreleaser.com
|
|
project_name: cacert-gosigner
|
|
env:
|
|
- CGO_ENABLED=1
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
builds:
|
|
- id: linux-amd64
|
|
main: ./cmd/signer
|
|
binary: cacert-gosigner
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
env:
|
|
- CC=x86_64-linux-gnu-gcc
|
|
- CXX=x86_64-linux-gnu-g++
|
|
flags:
|
|
- -buildmode=pie
|
|
- -trimpath
|
|
- id: linux-arm64
|
|
main: ./cmd/signer
|
|
binary: cacert-gosigner
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm64
|
|
goarm:
|
|
- "9"
|
|
env:
|
|
- CC=aarch64-linux-gnu-gcc
|
|
- CXX=aarch64-linux-gnu-g++
|
|
- PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/pkgconfig
|
|
flags:
|
|
- -buildmode=pie
|
|
- -trimpath
|
|
- id: linux-armhf
|
|
main: ./cmd/signer
|
|
binary: cacert-gosigner
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- arm
|
|
goarm:
|
|
- "7"
|
|
env:
|
|
- CC=arm-linux-gnueabihf-gcc
|
|
- CXX=arm-linux-gnueabihf-g++
|
|
- PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf/pkgconfig
|
|
flags:
|
|
- -buildmode=pie
|
|
- -trimpath
|
|
archives:
|
|
- id: cacert-gosigner
|
|
builds:
|
|
- linux-amd64
|
|
- linux-arm64
|
|
- linux-armhf
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
format: tar.gz
|
|
wrap_in_directory: "true"
|
|
checksum:
|
|
name_template: 'checksums.txt'
|
|
snapshot:
|
|
name_template: "{{ incpatch .Version }}-next"
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|