Skip to content

Commit

Permalink
chore(gorelaser): arm64 static build (#77)
Browse files Browse the repository at this point in the history
Adds build for arm64
  • Loading branch information
Lazar955 authored Oct 11, 2024
1 parent 4ccc7e5 commit 47956ed
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
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

0 comments on commit 47956ed

Please sign in to comment.