Skip to content

Commit e4aa0e8

Browse files
committed
fixing go releaser
1 parent 1bfa630 commit e4aa0e8

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.goreleaser.yaml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,21 @@ builds:
6767
binary: elysd
6868
hooks:
6969
pre:
70-
- 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.a
70+
- wget -O /lib/libwasmvm_muslc.x86_64.a https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a
71+
- echo "a4a3d09b36fabb65b119d5ba23442c23694401fcbee4451fe6b7e22e325a4bac /lib/libwasmvm_muslc.x86_64.a" | sha256sum -c
72+
- cp /lib/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.a
73+
- curl -LO https://musl.cc/x86_64-linux-musl-cross.tgz
74+
- tar xf x86_64-linux-musl-cross.tgz
75+
- mv x86_64-linux-musl-cross /opt/musl-cross
7176
goos:
7277
- linux
7378
goarch:
7479
- amd64
7580
env:
76-
- CC=x86_64-linux-gnu-gcc
81+
- CGO_ENABLED=1
82+
- CC=/opt/musl-cross/bin/x86_64-linux-musl-gcc,x86_64-linux-gnu-gcc
83+
- LD=/opt/musl-cross/bin/x86_64-linux-musl-ld
84+
- CGO_LDFLAGS=-L/lib
7785
flags:
7886
- -mod=readonly
7987
- -trimpath
@@ -97,13 +105,21 @@ builds:
97105
binary: elysd
98106
hooks:
99107
pre:
100-
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a -O /usr/lib/aarch64-linux-gnu/libwasmvm_muslc.a
108+
- wget -O /lib/libwasmvm_muslc.aarch64.a https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a
109+
- echo "a4a3d09b36fabb65b119d5ba23442c23694401fcbee4451fe6b7e22e325a4bac /lib/libwasmvm_muslc.aarch64.a" | sha256sum -c
110+
- cp /lib/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.a
111+
- curl -LO https://musl.cc/aarch64-linux-musl-cross.tgz
112+
- tar xf aarch64-linux-musl-cross.tgz
113+
- mv aarch64-linux-musl-cross /opt/musl-cross
101114
goos:
102115
- linux
103116
goarch:
104117
- arm64
105118
env:
106-
- CC=aarch64-linux-gnu-gcc
119+
- CGO_ENABLED=1
120+
- CC=/opt/musl-cross/bin/aarch64-linux-musl-gcc,aarch64-linux-gnu-gcc
121+
- LD=/opt/musl-cross/bin/aarch64-linux-musl-ld
122+
- CGO_LDFLAGS=-L/lib
107123
flags:
108124
- -mod=readonly
109125
- -trimpath
@@ -151,18 +167,21 @@ archives:
151167
format: binary
152168
files:
153169
- none*
170+
154171
checksum:
155-
name_template: "sha256sum.txt"
172+
name_template: SHA256SUMS-v{{.Version}}.txt
156173
algorithm: sha256
174+
157175
# Docs: https://goreleaser.com/customization/changelog/
158176
changelog:
159-
disable: true
177+
disable: false
178+
160179
# Docs: https://goreleaser.com/customization/release/
161180
release:
162181
github:
163182
owner: elys-network
164183
name: elys
165-
replace_existing_draft: true
184+
replace_existing_draft: false
166185
header: |
167186
## Description
168187

0 commit comments

Comments
 (0)