Skip to content

Commit 8900fec

Browse files
committed
update go releaser for cleaning cache
1 parent f0eb6ae commit 8900fec

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/create-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
fetch-depth: 0
2020
ref: ${{ github.event.inputs.release_tag }}
2121

22+
- name: Clean Go build cache
23+
run: |
24+
go clean -cache -modcache -testcache || true
25+
rm -rf /root/.cache/go-build /tmp/* || true
26+
sudo apt-get clean || true
27+
2228
- name: Make release
2329
run: |
2430
sudo rm -rf dist

.goreleaser.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ builds:
99
binary: elysd
1010
hooks:
1111
pre:
12-
- go clean -cache -modcache -testcache || true
13-
- sudo apt clean
1412
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a
1513
env:
1614
- CC=o64-clang
@@ -40,8 +38,6 @@ builds:
4038
binary: elysd
4139
hooks:
4240
pre:
43-
- go clean -cache -modcache -testcache || true
44-
- sudo apt clean
4541
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvmstatic_darwin.a -O /lib/libwasmvmstatic_darwin.a
4642
env:
4743
- CC=oa64-clang
@@ -71,8 +67,6 @@ builds:
7167
binary: elysd
7268
hooks:
7369
pre:
74-
- go clean -cache -modcache -testcache || true
75-
- sudo apt clean
7670
- wget -O /lib/libwasmvm_muslc.x86_64.a https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.x86_64.a
7771
- echo "a4a3d09b36fabb65b119d5ba23442c23694401fcbee4451fe6b7e22e325a4bac /lib/libwasmvm_muslc.x86_64.a" | sha256sum -c
7872
- cp /lib/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.a
@@ -112,8 +106,6 @@ builds:
112106
binary: elysd
113107
hooks:
114108
pre:
115-
- go clean -cache -modcache -testcache || true
116-
- sudo apt clean
117109
- wget https://github.com/CosmWasm/wasmvm/releases/download/{{ .Env.COSMWASM_VERSION }}/libwasmvm_muslc.aarch64.a -O /usr/lib/libwasmvm_muslc.aarch64.a
118110
goos:
119111
- linux

0 commit comments

Comments
 (0)