From 47956edbb72112162e4cecca5b9d1e0ad840dd47 Mon Sep 17 00:00:00 2001 From: Lazar <12626340+Lazar955@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:37:09 +0200 Subject: [PATCH] chore(gorelaser): arm64 static build (#77) Adds build for arm64 --- .goreleaser.yml | 28 ++++++++++++++++++++++++++++ CHANGELOG.md | 2 ++ Makefile | 1 + 3 files changed, 31 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 8ae6cd82..d7d2e509 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +version: 2 + project_name: vigilante builds: @@ -20,6 +22,32 @@ 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 -Wl,-rpath,/lib + ldflags: + - -w -s + - -linkmode=external + flags: + - -mod=readonly + - -trimpath + tags: + - netgo + - ledger + - static_wasm + archives: - id: zipped builds: diff --git a/CHANGELOG.md b/CHANGELOG.md index aa7fe7ed..9371498b 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 diff --git a/Makefile b/Makefile index 9d3c0107..b8eb2990 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.