Skip to content

Commit 7b8be02

Browse files
committed
update go releaser for cleaning cache
1 parent 70c6b7c commit 7b8be02

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.goreleaser.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ builds:
3838
binary: elysd
3939
hooks:
4040
pre:
41+
- go clean -cache -modcache -testcache || true
42+
- sudo apt clean
4143
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a
4244
env:
4345
- CC=oa64-clang
@@ -67,6 +69,8 @@ builds:
6769
binary: elysd
6870
hooks:
6971
pre:
72+
- go clean -cache -modcache -testcache || true
73+
- sudo apt clean
7074
- wget -O /lib/libwasmvm_muslc.x86_64.a https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a
7175
- echo "a4a3d09b36fabb65b119d5ba23442c23694401fcbee4451fe6b7e22e325a4bac /lib/libwasmvm_muslc.x86_64.a" | sha256sum -c
7276
- cp /lib/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.a
@@ -106,6 +110,8 @@ builds:
106110
binary: elysd
107111
hooks:
108112
pre:
113+
- go clean -cache -modcache -testcache || true
114+
- sudo apt clean
109115
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a -O /usr/lib/libwasmvm_muslc.aarch64.a
110116
goos:
111117
- linux

0 commit comments

Comments
 (0)