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(goreleaser): static amd64 #78

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
55 changes: 32 additions & 23 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,54 @@ builds:
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
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a -O /usr/lib/x86_64-linux-gnu/libwasmvm_muslc.x86_64.a
goos:
- linux
goarch:
- amd64
env:
- GO111MODULE=on
flags:
- -mod=readonly
- -trimpath
tags:
- 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
- CC=x86_64-linux-gnu-gcc
ldflags:
- -w -s
- -linkmode=external
- -extldflags '-Wl,-z,muldefs -static -lm'
flags:
- -mod=readonly
- -trimpath
tags:
- netgo
- ledger
- static_wasm
- muslc
- osusergo

# todo uncomment
# - 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
Expand Down
Loading