From 833b7ddb48e2291a1d4eee52235572b6f4728661 Mon Sep 17 00:00:00 2001 From: Amit Zafran Date: Thu, 4 Apr 2024 10:05:51 +0300 Subject: [PATCH] ci: Goreleaser fix (#1348) * update * seperate archives --------- Co-authored-by: amitz --- .goreleaser.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ec42c2f749..6ca7b68481 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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 @@ -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