File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed
Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -70,18 +70,32 @@ jobs:
7070 restore-keys : |
7171 ${{ runner.os }}-deps-
7272
73+ - name : Check space3.5
74+ run : df -h
7375
7476 - name : Clean before deps build
7577 if : steps.cache-deps-restore.outputs.cache-hit != 'true'
7678 run : |
77- # Clean conda cache
79+ # Clean package manager caches
80+ if command -v apt-get >/dev/null; then
81+ apt-get clean
82+ rm -rf /var/lib/apt/lists/*
83+ fi
84+
85+ # Clean conda
7886 conda clean -all -y
79- # Clean apt cache
80- apt-get clean
81- # Clean tmp directories
82- rm -rf /tmp/*
83- # Clean GitHub Actions tool cache
84- rm -rf /opt/hostedtoolcache/CodeQL /opt/hostedtoolcache/go /opt/hostedtoolcache/PyPy
87+
88+ # Remove common temporary locations
89+ rm -rf /tmp/* /var/tmp/*
90+
91+ # Clean pip cache if it exists
92+ if command -v pip >/dev/null; then
93+ pip cache purge
94+ fi
95+
96+ # Show what's using space
97+ echo "=== Disk usage by directory ==="
98+ du -sh /* 2>/dev/null | sort -hr | head -15
8599
86100 - name : Check space4
87101 run : df -h
You can’t perform that action at this time.
0 commit comments