Skip to content

Commit 268e012

Browse files
committed
Add disk cleanup step to CI
1 parent c135a45 commit 268e012

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/publish-280.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ jobs:
1212
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1313

1414
steps:
15+
- name: Free disk space (Ubuntu only)
16+
if: startsWith(matrix.os, 'ubuntu')
17+
shell: bash
18+
run: |
19+
echo "Before cleanup:" && df -h
20+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc || true
21+
sudo docker system prune -af || true
22+
sudo rm -rf /var/lib/docker || true
23+
echo "After cleanup:" && df -h
24+
1525
- name: Checkout code
1626
uses: actions/checkout@v4
1727

0 commit comments

Comments
 (0)