Skip to content

Commit 1c46ed3

Browse files
authored
Merge pull request InsightSoftwareConsortium#6011 from hjmjohnson/fix-ci-disk-space
COMP: Free disk space between build and test in Pixi CI
2 parents fe35b68 + 855276a commit 1c46ed3

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/pixi.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,20 @@ jobs:
135135
pixi run --skip-deps build
136136
echo "****** df -h / -- post build"
137137
df -h /
138+
139+
- name: Free disk space after build
140+
shell: bash
141+
run: |
142+
# Remove object files and static libraries (not needed for testing)
138143
find build -type f -name "*.o" -delete
139144
find build -type f -name "*.a" -delete
140-
echo "****** df -h / -- post .o .a cleanup"
145+
# Remove downloaded data tarballs (already extracted)
146+
rm -f InsightData-*.tar.gz
147+
# Remove extracted source tarball directory
148+
rm -rf InsightToolkit-${{ env.ExternalDataVersion }}
149+
# Trim ccache to stay within CCACHE_MAXSIZE and remove orphaned entries
150+
ccache --cleanup 2>/dev/null || true
151+
echo "****** df -h / -- post cleanup"
141152
df -h /
142153
143154
- name: Test

0 commit comments

Comments
 (0)