diff --git a/.goreleaser.yml b/.goreleaser.yml index d7d2e50..5ddca64 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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