File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 7070 restore-keys : |
7171 ${{ runner.os }}-deps-
7272
73+ - name : Check space3.5
74+ run : df -h
75+
76+ - name : Clean before deps build
77+ if : steps.cache-deps-restore.outputs.cache-hit != 'true'
78+ run : |
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
86+ conda clean -all -y
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
99+
73100 - name : Check space4
74101 run : df -h
75102
Original file line number Diff line number Diff line change 11#! /bin/bash -x
2+ set -e # Exit on any error
3+ set -o pipefail # Exit on pipe failures
24
35echo " #############################"
46echo " # Build dependencies #"
You can’t perform that action at this time.
0 commit comments