Skip to content

Commit b0b71ae

Browse files
committed
ci: replace inline cleanup commands with reusable action
Update workflows to use the new `cleanup-space` composite action for clearing runner disk space, replacing the manual `rm -rf` commands. Add a cleanup step to the cross-compilation job.
1 parent c7470ce commit b0b71ae

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 12 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:
@@ -72,6 +75,9 @@ jobs:
7275
with:
7376
fetch-depth: 0
7477

78+
- name: Clean up runner space
79+
uses: ./.github/actions/cleanup-space
80+
7581
- name: go cache
7682
uses: actions/cache@v3
7783
with:
@@ -108,6 +114,9 @@ jobs:
108114
- name: git checkout
109115
uses: actions/checkout@v5
110116

117+
- name: Clean up runner space
118+
uses: ./.github/actions/cleanup-space
119+
111120
- name: go cache
112121
uses: actions/cache@v3
113122
with:
@@ -137,6 +146,9 @@ jobs:
137146
- name: git checkout
138147
uses: actions/checkout@v5
139148

149+
- name: Clean up runner space
150+
uses: ./.github/actions/cleanup-space
151+
140152
- name: go cache
141153
uses: actions/cache@v3
142154
with:

0 commit comments

Comments
 (0)