Skip to content

Commit effad0a

Browse files
author
codethinki
committed
freeing diskspace by removing android
1 parent 2ccce91 commit effad0a

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)