Skip to content

Commit 31218f6

Browse files
ci: remove unused preinstalled software/images for build tests to free up disk space. (#9814)
Co-authored-by: Teppei Fukuda <[email protected]>
1 parent cbad9ca commit 31218f6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/test.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,17 @@ jobs:
217217
env:
218218
DOCKER_CLI_EXPERIMENTAL: "enabled"
219219
steps:
220+
# The go-build (GOCACHE env) directory requires a large amount of free disk space.
221+
- name: Free up disk space
222+
if: matrix.operating-system == 'ubuntu-latest'
223+
run: |
224+
sudo rm -rf /usr/local/lib/android
225+
sudo rm -rf /usr/share/dotnet
226+
sudo rm -rf /opt/ghc
227+
sudo rm -rf /opt/hostedtoolcache/CodeQL
228+
sudo docker image prune --all --force
229+
df -h
230+
220231
- name: Checkout
221232
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
222233

0 commit comments

Comments
 (0)