Skip to content

Commit

Permalink
build: Enable building binary only on macos
Browse files Browse the repository at this point in the history
Current config only allows building local binaries on Linux machines so
adding config to allow building binaries on macos without changing the
release config (and hence still only releasing linux binaries as required).
  • Loading branch information
jimmidyson committed Oct 2, 2024
1 parent 71431ac commit 2dd052f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions make/goreleaser.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ build-snapshot: go-generate ; $(info $(M) building snapshot $*)
--snapshot \
--clean \
--parallelism=$(GORELEASER_PARALLELISM) \
--config=<(env GOOS=$(shell go env GOOS) gojq --yaml-input --yaml-output '.builds[0].goos |= (. + [env.GOOS] | unique)' .goreleaser.yml) \
$(if $(BUILD_ALL),,--single-target)

.PHONY: release
Expand Down

0 comments on commit 2dd052f

Please sign in to comment.