Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(gorelaser): arm64 static build #77

Merged
merged 4 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

project_name: vigilante

builds:
Expand All @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading