Skip to content

Commit e4ff24a

Browse files
Restore disk cleanup
1 parent 83e6426 commit e4ff24a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,22 @@ jobs:
141141
runs-on: ${{ matrix.os }}
142142
steps:
143143
- uses: actions/checkout@v4
144+
- name: Clean up disk space
145+
run: |
146+
echo "Disk space before cleanup:"
147+
df -h
148+
149+
# These are the biggest disk space hogs.
150+
sudo rm -rf \
151+
/opt/hostedtoolcache/CodeQL \
152+
/usr/lib/dotnet \
153+
/usr/lib/jvm \
154+
/usr/local/.ghcup \
155+
/usr/local/lib/android \
156+
/usr/share/swift
157+
158+
echo "Disk space after cleanup:"
159+
df -h
144160
- name: Build C++
145161
run: bash .github/scripts/build-rocm.sh
146162
env:

0 commit comments

Comments
 (0)