Skip to content

Commit

Permalink
Fix/goreleaser builds (#5942)
Browse files Browse the repository at this point in the history
* Fix typo in arm build

* Add osusergo build tag
  • Loading branch information
niccoloraspa authored Aug 1, 2023
1 parent a907df0 commit acef601
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.AppName=osmosisd
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc,osusergo
- -w -s
- -linkmode=external
- -extldflags '-Wl,-z,muldefs -static -lm'
tags:
- netgo
- ledger
- muslc
- osusergo

- id: osmosisd-linux-arm64
main: ./cmd/osmosisd
Expand All @@ -111,14 +112,15 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.AppName=osmosisd
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc,osusergo
- -w -s
- -linkmode=external
- -extldflags '-Wl,-z,muldefs -static -lm'
tags:
- netgo
- ledger
- muslc
- osusergo

universal_binaries:
- id: osmosisd-darwin-universal
Expand All @@ -143,7 +145,7 @@ archives:
builds:
- osmosisd-darwin-universal
- osmosisd-linux-amd64
- osmosisd-linux-amd64
- osmosisd-linux-arm64
- osmosisd-darwin-amd64
- osmosisd-darwin-arm64
name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
Expand Down

0 comments on commit acef601

Please sign in to comment.