File tree Expand file tree Collapse file tree
actions/host-cleanup-linux Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ' Host Cleanup (Linux)'
2+ description : ' Remove unused toolchains and SDKs to free disk space on Linux runners'
3+
4+ runs :
5+ using : ' composite'
6+ steps :
7+ - name : Cleanup unused image dependencies
8+ if : runner.os == 'Linux'
9+ shell : bash
10+ run : |
11+ echo "Disk space before cleanup:"
12+ df -h /
13+ rm -fR ~/.cargo ~/.rustup ~/.dotnet
14+ sudo rm -fR /usr/share/swift /opt/microsoft/msedge /usr/local/.ghcup /usr/lib/mono /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
15+ sudo snap remove lxd || true
16+ sudo snap remove core20 || true
17+ sudo apt remove -y snapd || true
18+ echo "Disk space after cleanup:"
19+ df -h /
Original file line number Diff line number Diff line change 9090 with :
9191 fetch-depth : 0
9292
93+ - name : Free disk space (Linux)
94+ uses : ./.github/actions/host-cleanup-linux
95+
9396 - name : Download Artifact
9497 uses : actions/download-artifact@v4
9598 with :
You can’t perform that action at this time.
0 commit comments