From 5362ba36de8834f09db7552049f6cd4658a79cd6 Mon Sep 17 00:00:00 2001 From: Lazar Date: Fri, 11 Oct 2024 14:25:05 +0200 Subject: [PATCH 1/4] wip:amd64 --- .goreleaser.yml | 29 +++++++++++++++++++++++++++++ Makefile | 1 + 2 files changed, 30 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 8ae6cd8..268dcaf 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +version: 2 + project_name: vigilante builds: @@ -20,6 +22,33 @@ builds: - netgo - osusergo + - id: vigilante-darwin-arm64 + main: ./cmd/vigilante/main.go + binary: vigilante + hooks: + pre: + - wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a + goos: + - darwin + goarch: + - arm64 + env: + - GO111MODULE=on + - CGO_ENABLED=1 + - CC=oa64-clang + - CGO_LDFLAGS=-L/lib + ldflags: + - -w -s + - -linkmode=external + flags: + - -mod=readonly + - -trimpath + tags: + - netgo + - ledger + - muslc + - osusergo + archives: - id: zipped builds: diff --git a/Makefile b/Makefile index 9d3c010..b8eb299 100644 --- a/Makefile +++ b/Makefile @@ -115,6 +115,7 @@ release-snapshot: --clean \ --snapshot \ --skip=publish,validate \ + --verbose # NOTE: By default, the CI will handle the release process. # this is for manually releasing. From 08d4291eec5d838209a144e27162a5db5c8d1e1d Mon Sep 17 00:00:00 2001 From: Lazar Date: Fri, 11 Oct 2024 14:49:49 +0200 Subject: [PATCH 2/4] amd64 works --- .goreleaser.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 268dcaf..dbddee0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -36,8 +36,9 @@ builds: - GO111MODULE=on - CGO_ENABLED=1 - CC=oa64-clang - - CGO_LDFLAGS=-L/lib + - CGO_LDFLAGS=-L/lib -Wl,-rpath,/lib ldflags: + - -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,static_wasm - -w -s - -linkmode=external flags: @@ -46,8 +47,7 @@ builds: tags: - netgo - ledger - - muslc - - osusergo + - static_wasm archives: - id: zipped From f10000768915a83b6d58c3299bd8ee23cdb03d29 Mon Sep 17 00:00:00 2001 From: Lazar Date: Fri, 11 Oct 2024 14:53:05 +0200 Subject: [PATCH 3/4] changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa7fe7e..9371498 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,5 +39,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Improvements +* [#77](https://github.com/babylonlabs-io/vigilante/pull/77) add arm64 static build + * [#76](https://github.com/babylonlabs-io/vigilante/pull/76) add goreleaser setup and move out changelog reminder From 862b3ec68ad8bb8a417ee44bde6434a1365fd953 Mon Sep 17 00:00:00 2001 From: Lazar Date: Fri, 11 Oct 2024 15:11:46 +0200 Subject: [PATCH 4/4] rm tag --- .goreleaser.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index dbddee0..d7d2e50 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -38,7 +38,6 @@ builds: - CC=oa64-clang - CGO_LDFLAGS=-L/lib -Wl,-rpath,/lib ldflags: - - -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,static_wasm - -w -s - -linkmode=external flags: