Skip to content

Commit

Permalink
ci: Enable netgo and ledger support for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
hochiw committed Feb 14, 2022
1 parent cd27ade commit 76a60d0
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ builds:
flags:
- -tags=cgo
ldflags:
- -s -w -X github.com/cosmos/cosmos-sdk/version.Name=likecoin-chain -X github.com/cosmos/cosmos-sdk/version.AppName=liked -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- -s -w
- -X github.com/cosmos/cosmos-sdk/version.Name=likecoin-chain
- -X github.com/cosmos/cosmos-sdk/version.AppName=liked
- -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"
- id: "liked-darwin-arm64"
main: ./cmd/liked
binary: bin/liked
Expand All @@ -32,7 +37,12 @@ builds:
flags:
- -tags=cgo
ldflags:
- -s -w -X github.com/cosmos/cosmos-sdk/version.Name=likecoin-chain -X github.com/cosmos/cosmos-sdk/version.AppName=liked -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- -s -w
- -X github.com/cosmos/cosmos-sdk/version.Name=likecoin-chain
- -X github.com/cosmos/cosmos-sdk/version.AppName=liked
- -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"
- id: "liked-linux"
main: ./cmd/liked
binary: bin/liked
Expand All @@ -47,7 +57,12 @@ builds:
flags:
- -tags=cgo
ldflags:
- -s -w -X github.com/cosmos/cosmos-sdk/version.Name=likecoin-chain -X github.com/cosmos/cosmos-sdk/version.AppName=liked -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- -s -w
- -X github.com/cosmos/cosmos-sdk/version.Name=likecoin-chain
- -X github.com/cosmos/cosmos-sdk/version.AppName=liked
- -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"
- id: "liked-linux-arm64"
main: ./cmd/liked
binary: bin/liked
Expand All @@ -62,7 +77,12 @@ builds:
flags:
- -tags=cgo
ldflags:
- -s -w -X github.com/cosmos/cosmos-sdk/version.Name=likecoin-chain -X github.com/cosmos/cosmos-sdk/version.AppName=liked -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- -s -w
- -X github.com/cosmos/cosmos-sdk/version.Name=likecoin-chain
- -X github.com/cosmos/cosmos-sdk/version.AppName=liked
- -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"
- id: "liked-windows"
main: ./cmd/liked
binary: bin/liked
Expand All @@ -78,7 +98,12 @@ builds:
- -tags=cgo
- -buildmode=exe
ldflags:
- -s -w -X github.com/cosmos/cosmos-sdk/version.Name=likecoin-chain -X github.com/cosmos/cosmos-sdk/version.AppName=liked -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
- -s -w
- -X github.com/cosmos/cosmos-sdk/version.Name=likecoin-chain
- -X github.com/cosmos/cosmos-sdk/version.AppName=liked
- -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"

archives:
- name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
Expand Down

0 comments on commit 76a60d0

Please sign in to comment.