Skip to content

Commit fe48e65

Browse files
authored
Merge pull request #9381 from yyforyongyu/fix-no-space-left
workflows: fix no space left error
2 parents 8859dbc + 1167181 commit fe48e65

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

+30
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
name: Sqlc check
3838
runs-on: ubuntu-latest
3939
steps:
40+
- name: cleanup space
41+
run: rm -rf /opt/hostedtoolcache
42+
4043
- name: git checkout
4144
uses: actions/checkout@v3
4245

@@ -60,6 +63,9 @@ jobs:
6063
name: RPC and mobile compilation check
6164
runs-on: ubuntu-latest
6265
steps:
66+
- name: cleanup space
67+
run: rm -rf /opt/hostedtoolcache
68+
6369
- name: git checkout
6470
uses: actions/checkout@v3
6571

@@ -88,6 +94,9 @@ jobs:
8894
name: check commits
8995
runs-on: ubuntu-latest
9096
steps:
97+
- name: cleanup space
98+
run: rm -rf /opt/hostedtoolcache
99+
91100
- name: git checkout
92101
uses: actions/checkout@v3
93102
with:
@@ -111,6 +120,9 @@ jobs:
111120
name: lint code
112121
runs-on: ubuntu-latest
113122
steps:
123+
- name: cleanup space
124+
run: rm -rf /opt/hostedtoolcache
125+
114126
- name: git checkout
115127
uses: actions/checkout@v3
116128
with:
@@ -151,6 +163,9 @@ jobs:
151163
- name: arm
152164
sys: darwin-arm64 freebsd-arm linux-armv6 linux-armv7 linux-arm64 windows-arm
153165
steps:
166+
- name: cleanup space
167+
run: rm -rf /opt/hostedtoolcache
168+
154169
- name: git checkout
155170
uses: actions/checkout@v3
156171

@@ -171,6 +186,9 @@ jobs:
171186
name: sample configuration check
172187
runs-on: ubuntu-latest
173188
steps:
189+
- name: cleanup space
190+
run: rm -rf /opt/hostedtoolcache
191+
174192
- name: git checkout
175193
uses: actions/checkout@v3
176194

@@ -201,6 +219,9 @@ jobs:
201219
- unit-module
202220

203221
steps:
222+
- name: cleanup space
223+
run: rm -rf /opt/hostedtoolcache
224+
204225
- name: git checkout
205226
uses: actions/checkout@v3
206227
with:
@@ -273,6 +294,9 @@ jobs:
273294
- name: neutrino
274295
args: backend=neutrino cover=1
275296
steps:
297+
- name: cleanup space
298+
run: rm -rf /opt/hostedtoolcache
299+
276300
- name: git checkout
277301
uses: actions/checkout@v3
278302
with:
@@ -420,6 +444,9 @@ jobs:
420444
- github.com/golang/protobuf v1.5.3
421445

422446
steps:
447+
- name: cleanup space
448+
run: rm -rf /opt/hostedtoolcache
449+
423450
- name: git checkout
424451
uses: actions/checkout@v3
425452

@@ -434,6 +461,9 @@ jobs:
434461
runs-on: ubuntu-latest
435462
if: '!contains(github.event.pull_request.labels.*.name, ''no-changelog'')'
436463
steps:
464+
- name: cleanup space
465+
run: rm -rf /opt/hostedtoolcache
466+
437467
- name: git checkout
438468
uses: actions/checkout@v3
439469

0 commit comments

Comments
 (0)