From fcbf82ba14514c1a4ade80f249d3c466e4f875bb Mon Sep 17 00:00:00 2001 From: Lazar <12626340+Lazar955@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:41:49 +0100 Subject: [PATCH] chore: gorelease fix (#113) In our GitHub actions we are not aware of wasm version, set it statically --- .goreleaser.yml | 21 +++++++++++++++++---- CHANGELOG.md | 3 +++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index d7d2e509..a3a3f526 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -6,9 +6,6 @@ builds: - id: vigilante-linux-amd64 main: ./cmd/vigilante/main.go binary: vigilante - hooks: - pre: - - wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /usr/lib/libwasmvm_muslc.x86_64.a goos: - linux goarch: @@ -18,6 +15,8 @@ builds: flags: - -mod=readonly - -trimpath + ldflags: + - -w -s tags: - netgo - osusergo @@ -27,7 +26,7 @@ builds: binary: vigilante hooks: pre: - - wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a + - wget https://github.com/CosmWasm/wasmvm/releases/download/v2.1.3/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a goos: - darwin goarch: @@ -63,6 +62,20 @@ archives: format: binary files: - none* + - id: zipped-arm64 + builds: + - vigilante-darwin-arm64 + name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}" + format: tar.gz + files: + - none* + - id: binaries-arm64 + builds: + - vigilante-darwin-arm64 + name_template: "{{.ProjectName}}-{{ .Version }}-{{ .Os }}-{{ .Arch }}" + format: binary + files: + - none* checksum: name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt" diff --git a/CHANGELOG.md b/CHANGELOG.md index 489b7129..1e9c0ac3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## Unreleased +* [#113](https://github.com/babylonlabs-io/vigilante/pull/113) goreleaser wasm version + + ## v0.17.0 ### Improvements