Skip to content

Commit ce60df5

Browse files
committed
[CI] More aggressively clean up space on disk
1 parent 3db4a80 commit ce60df5

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,28 @@ jobs:
8181
julia-version: "1.12"
8282

8383
steps:
84-
- run: sudo rm -rf /opt/*
84+
- name: Show available storage before cleanup
85+
run: |
86+
echo " --> df -h /"
87+
df -h /
88+
echo " --> df -a /"
89+
df -a /
90+
- name: Free Disk Space
91+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
92+
with:
93+
tool-cache: true
94+
# Removing "large packages" alone takes a couple of minutes, it could
95+
# be switched to true if more space is needed (it'd save ~5 GB or so)
96+
large-packages: false
97+
- name: Cleanup /opt
98+
run: |
99+
sudo rm -rf /opt/*
100+
- name: Show available storage after cleanup
101+
run: |
102+
echo " --> df -h /"
103+
df -h /
104+
echo " --> df -a /"
105+
df -a /
85106
- uses: actions/checkout@v6
86107
- uses: julia-actions/setup-julia@v2
87108
with:
@@ -130,3 +151,10 @@ jobs:
130151
path-to-lcov: lcov.info
131152
flag-name: run-${{ join(matrix.*, '-') }}
132153
parallel: true
154+
- name: Show available storage at the end
155+
if: always()
156+
run: |
157+
echo " --> df -h /"
158+
df -h /
159+
echo " --> df -a /"
160+
df -a /

0 commit comments

Comments
 (0)