Skip to content

Commit 63b9718

Browse files
committed
Free up space on the GitHub-hosted runner
1 parent b7aec5a commit 63b9718

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/examples.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,16 @@ jobs:
3333
if: startsWith(matrix.os, 'ubuntu')
3434
run: |
3535
# Free space
36+
echo "Listing 50 largest packages"
37+
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 50
38+
df -h
39+
sudo rm -rf /opt/hostedtoolcache
40+
sudo rm -rf /usr/share/dotnet
41+
sudo rm -rf /usr/local/lib/android
3642
sudo apt clean
37-
# docker rmi $(docker image ls -aq)
43+
docker system prune -af
3844
df -h
45+
3946
tox -e testexamples
4047
4148
- name: Run on macOS

0 commit comments

Comments
 (0)