Skip to content

Commit 4bff749

Browse files
committed
ci: execute cleanup commands in CI jobs
Update workflows to use the new `cleanup-space` composite action for clearing runner disk space. Note that in the "build package and wasm" job, the cleanup of the android build folder is done after the rest of the step is completed, as the contents of the folder are needed during the "android compile" step.
1 parent 62bbc22 commit 4bff749

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- name: git checkout
3030
uses: actions/checkout@v5
3131

32+
- name: Clean up runner space
33+
uses: ./.github/actions/cleanup-space
34+
3235
- name: go cache
3336
uses: actions/cache@v3
3437
with:
@@ -60,6 +63,9 @@ jobs:
6063
- name: wasm compile
6164
run: make wasm
6265

66+
- name: Clean up runner space (android)
67+
uses: ./.github/actions/cleanup-android
68+
6369
########################
6470
# lint code
6571
########################
@@ -72,6 +78,12 @@ jobs:
7278
with:
7379
fetch-depth: 0
7480

81+
- name: Clean up runner space
82+
uses: ./.github/actions/cleanup-space
83+
84+
- name: Clean up runner space (android)
85+
uses: ./.github/actions/cleanup-android
86+
7587
- name: go cache
7688
uses: actions/cache@v3
7789
with:
@@ -108,6 +120,12 @@ jobs:
108120
- name: git checkout
109121
uses: actions/checkout@v5
110122

123+
- name: Clean up runner space
124+
uses: ./.github/actions/cleanup-space
125+
126+
- name: Clean up runner space (android)
127+
uses: ./.github/actions/cleanup-android
128+
111129
- name: go cache
112130
uses: actions/cache@v3
113131
with:
@@ -137,6 +155,12 @@ jobs:
137155
- name: git checkout
138156
uses: actions/checkout@v5
139157

158+
- name: Clean up runner space
159+
uses: ./.github/actions/cleanup-space
160+
161+
- name: Clean up runner space (android)
162+
uses: ./.github/actions/cleanup-android
163+
140164
- name: go cache
141165
uses: actions/cache@v3
142166
with:

0 commit comments

Comments
 (0)