Skip to content

Commit 47345be

Browse files
authored
Merge pull request #2432 from SCIInstitute/gha_disk_space
Try to free up space for linux debug github actions runner
2 parents 81c093a + 90471ff commit 47345be

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/build-linux-debug.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,33 @@ jobs:
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

.github/workflows/gha_deps.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash -x
2+
set -e # Exit on any error
3+
set -o pipefail # Exit on pipe failures
24

35
echo "#############################"
46
echo "# Build dependencies #"

0 commit comments

Comments
 (0)