File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -31,24 +31,10 @@ jobs:
3131 matrix :
3232 compiler : [gcc]
3333 steps :
34- - name : Analyze Disk Usage (Detailed)
34+ - name : Free Disk Space
3535 run : |
36- df -h
37- echo "--- Top 10 Largest Directories in /usr/local ---"
38- sudo du -h --max-depth=2 /usr/local | sort -rh | head -n 10
39- echo "--- Top 10 Largest Directories in /opt ---"
40- sudo du -h --max-depth=2 /opt | sort -rh | head -n 10
41- echo "--- Top 10 Directories by File Count (Slow to Delete) ---"
42- # Find directories with most files (approximate check on top usage dirs)
43- sudo find /usr/local /opt -maxdepth 3 -type d -print0 | xargs -0 -I{} sh -c 'echo "$(find "{}" -maxdepth 1 | wc -l) {}"' | sort -rn | head -n 10
44-
45- # - name: Free Disk Space
46- # run: |
47- # sudo rm -rf /usr/share/dotnet
48- # sudo rm -rf /usr/local/lib/android
49- # sudo rm -rf /opt/ghc
50- # sudo rm -rf "$AGENT_TOOLSDIRECTORY"
51-
36+ sudo rm -rf /usr/local/lib/android
37+
5238 - uses : actions/checkout@v4
5339 with :
5440 submodules : recursive
You can’t perform that action at this time.
0 commit comments