File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,21 @@ jobs:
266266 runs-on : ubuntu-latest
267267 container :
268268 image : amd64/rust
269+ volumes :
270+ - /usr/local:/host/usr/local
269271 steps :
272+ - name : Remove unnecessary preinstalled software
273+ run : |
274+ echo "Disk space before cleanup:"
275+ df -h
276+ # remove tool cache: about 8.5GB (github has host /opt/hostedtoolcache mounted as /__t)
277+ rm -rf /__t/* || true
278+ # remove Haskell runtime: about 6.3GB (host /usr/local/.ghcup)
279+ rm -rf /host/usr/local/.ghcup || true
280+ # remove Android library: about 7.8GB (host /usr/local/lib/android)
281+ rm -rf /host/usr/local/lib/android || true
282+ echo "Disk space after cleanup:"
283+ df -h
270284 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
271285 with :
272286 submodules : true
You can’t perform that action at this time.
0 commit comments