Skip to content

Commit ff665dc

Browse files
committed
update go releaser for cleaning cache
1 parent 06a96c3 commit ff665dc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.goreleaser.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ builds:
99
binary: elysd
1010
hooks:
1111
pre:
12+
- go clean -cache -modcache -testcache || true
13+
- sudo apt clean
1214
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a
1315
env:
1416
- CC=o64-clang
@@ -38,6 +40,8 @@ builds:
3840
binary: elysd
3941
hooks:
4042
pre:
43+
- go clean -cache -modcache -testcache || true
44+
- sudo apt clean
4145
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a
4246
env:
4347
- CC=oa64-clang
@@ -67,6 +71,8 @@ builds:
6771
binary: elysd
6872
hooks:
6973
pre:
74+
- go clean -cache -modcache -testcache || true
75+
- sudo apt clean
7076
- wget -O /lib/libwasmvm_muslc.x86_64.a https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a
7177
- echo "a4a3d09b36fabb65b119d5ba23442c23694401fcbee4451fe6b7e22e325a4bac /lib/libwasmvm_muslc.x86_64.a" | sha256sum -c
7278
- cp /lib/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.a
@@ -106,6 +112,8 @@ builds:
106112
binary: elysd
107113
hooks:
108114
pre:
115+
- go clean -cache -modcache -testcache || true
116+
- sudo apt clean
109117
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a -O /usr/lib/libwasmvm_muslc.aarch64.a
110118
goos:
111119
- linux

0 commit comments

Comments
 (0)