File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
.github/actions/free-space Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -20,23 +20,26 @@ runs:
2020 shell : bash
2121 run : |
2222 # Remove stopped containers, unused networks, dangling images, and build cache
23- docker system prune -af || true
23+ time docker system prune -af || true
24+ df -h
2425
2526 - name : Remove large preinstalled SDKs and toolchains
2627 shell : bash
2728 run : |
2829 # These paths are known big space hogs on ubuntu-latest runners
29- sudo rm -rf /usr/local/lib/android || true
30- sudo rm -rf /usr/share/dotnet || true
31- sudo rm -rf /opt/ghc || true
32- sudo rm -rf /opt/hostedtoolcache/CodeQL || true
33- sudo rm -rf /opt/hostedtoolcache/go || true
30+ time sudo rm -rf /usr/local/lib/android || true
31+ time sudo rm -rf /usr/share/dotnet || true
32+ df -h
33+ time sudo rm -rf /opt/ghc || true
34+ time sudo rm -rf /opt/hostedtoolcache/CodeQL || true
35+ time sudo rm -rf /opt/hostedtoolcache/go || true
36+ df -h
3437
3538 - name : Clean APT caches
3639 shell : bash
3740 run : |
38- sudo apt-get clean || true
39- sudo rm -rf /var/lib/apt/lists/* || true
41+ time sudo apt-get clean || true
42+ time sudo rm -rf /var/lib/apt/lists/* || true
4043
4144 - name : Show disk usage after cleanup
4245 shell : bash
You can’t perform that action at this time.
0 commit comments