From 0f248606d5a027c6cd3766d8b32cc1b1e529422b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 30 Oct 2021 11:25:04 +0200 Subject: [PATCH] releaser: Only build amd64 binary for freebsd, netbsd, openbsd, dragonfly Fixes #9102 --- goreleaser.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/goreleaser.yml b/goreleaser.yml index d6aba296b..af887e512 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -19,10 +19,6 @@ builds: - darwin - linux - windows - - freebsd - - netbsd - - openbsd - - dragonfly goarch: - amd64 - 386 @@ -33,7 +29,22 @@ builds: ignore: - goos: darwin 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 id: hugo_extended_windows @@ -92,7 +103,7 @@ release: archives: - id: "hugo" - builds: ['hugo'] + builds: ['hugo', 'hugo_unix'] format: tar.gz format_overrides: - goos: windows