releaser: Only build amd64 binary for freebsd, netbsd, openbsd, dragonfly

Fixes #9102
This commit is contained in:
Bjørn Erik Pedersen 2021-10-30 11:25:04 +02:00
parent e82cbd746f
commit 0f248606d5
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -19,10 +19,6 @@ builds:
- darwin - darwin
- linux - linux
- windows - windows
- freebsd
- netbsd
- openbsd
- dragonfly
goarch: goarch:
- amd64 - amd64
- 386 - 386
@ -33,7 +29,22 @@ builds:
ignore: ignore:
- goos: darwin - goos: darwin
goarch: 386 goarch: 386
-
binary: hugo
id: hugo_unix
ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.buildDate={{.Date}} -X github.com/gohugoio/hugo/common/hugo.commitHash={{ .ShortCommit }} -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio
env:
- CGO_ENABLED=0
flags:
- -buildmode
- exe
goos:
- freebsd
- netbsd
- openbsd
- dragonfly
goarch:
- amd64
- -
binary: hugo binary: hugo
id: hugo_extended_windows id: hugo_extended_windows
@ -92,7 +103,7 @@ release:
archives: archives:
- -
id: "hugo" id: "hugo"
builds: ['hugo'] builds: ['hugo', 'hugo_unix']
format: tar.gz format: tar.gz
format_overrides: format_overrides:
- goos: windows - goos: windows