Skip to content

Commit

Permalink
ci: Goreleaser fix (#1348)
Browse files Browse the repository at this point in the history
* update

* seperate archives

---------

Co-authored-by: amitz <[email protected]>
  • Loading branch information
amitza and amitz authored Apr 4, 2024
1 parent cfb9063 commit 833b7dd
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ builds:
goarch: ppc64le
- goos: windows
goarch: arm64
ldflags:
- -X github.com/cosmos/cosmos-sdk/version.Name=lava
- -X github.com/cosmos/cosmos-sdk/version.AppName=lavad
- -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
flags:
- -mod=readonly
- -trimpath
Expand Down Expand Up @@ -96,10 +102,45 @@ builds:
- -trimpath

archives:
- format: tar.gz
- id: lavavisor
builds:
- lavavisor
format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .Binary }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
- id: lavap
builds:
- lavap
format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .Binary }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
- id: lavad
builds:
- lavad
format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{ .Binary }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
Expand Down

0 comments on commit 833b7dd

Please sign in to comment.