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

(cherry picked from commit acef601)

# Conflicts:
#	.goreleaser.yaml
  • Loading branch information
niccoloraspa authored and mergify[bot] committed Aug 1, 2023
1 parent 65f49a0 commit d33888a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,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 @@ -112,14 +113,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 @@ -144,7 +146,13 @@ archives:
- osmosisd-darwin-universal
- osmosisd-linux-amd64
- osmosisd-linux-arm64
<<<<<<< HEAD
name_template: "{{.ProjectName}}-{{ .Os }}-{{ .Arch }}"
=======
- osmosisd-darwin-amd64
- osmosisd-darwin-arm64
name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
>>>>>>> acef6013 (Fix/goreleaser builds (#5942))
format: binary
files:
- none*
Expand Down

0 comments on commit d33888a

Please sign in to comment.