Skip to content

Commit ab701ea

Browse files
author
codethinki
committed
checking which directory is the most "worth it" for freeing up space
1 parent 9d654ba commit ab701ea

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,18 @@ jobs:
3131
matrix:
3232
compiler: [gcc]
3333
steps:
34-
- name: Free Disk Space
34+
- name: Analyze Disk Usage
3535
run: |
36-
sudo rm -rf /usr/share/dotnet
37-
sudo rm -rf /usr/local/lib/android
38-
sudo rm -rf /opt/ghc
39-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
36+
df -h
37+
echo "--- Large Directories (Depth 2) ---"
38+
sudo du -h --max-depth=2 --exclude=/proc --exclude=/sys --exclude=/dev /usr /opt /var | sort -rh | head -n 20
39+
40+
# - name: Free Disk Space
41+
# run: |
42+
# sudo rm -rf /usr/share/dotnet
43+
# sudo rm -rf /usr/local/lib/android
44+
# sudo rm -rf /opt/ghc
45+
# sudo rm -rf "$AGENT_TOOLSDIRECTORY"
4046

4147
- uses: actions/checkout@v4
4248
with:

0 commit comments

Comments
 (0)