mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
- Use tags=netgo to ensure net package won't use cgo - Rebuild stdlib (go build -a) to really disable cgo as it was tried in https://github.com/osrg/gobgp/pull/2300 - Remove static ldflags as it would statically compile cgo
44 lines
567 B
YAML
44 lines
567 B
YAML
#
|
|
# .goreleaser.yml
|
|
# Build customization
|
|
env:
|
|
- GO111MODULE=on
|
|
- CGO_ENABLED=0
|
|
|
|
builds:
|
|
- id: gobgp
|
|
main: ./cmd/gobgp/
|
|
binary: gobgp
|
|
flags:
|
|
- -a
|
|
- -tags=netgo
|
|
ldflags: -s
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
- 386
|
|
- arm
|
|
- arm64
|
|
|
|
- id: gobgpd
|
|
main: ./cmd/gobgpd/
|
|
binary: gobgpd
|
|
flags:
|
|
- -a
|
|
- -tags=netgo
|
|
ldflags: -s
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
- 386
|
|
- arm
|
|
- arm64
|
|
|
|
archives:
|
|
- id: foo
|
|
files:
|
|
- LICENSE
|
|
- README.md
|