-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Free up disk space on GitHub CI runner (#309)
Removes: - docker images - dotnet - android - haskell - powershell - swift - jvm This frees up about 30G of disk space This also removes /var/lib/apt/lists after `apt-et install`
- Loading branch information
1 parent
dc2f2e4
commit 058f09b
Showing
3 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -eux | ||
|
||
# Adapted from https://stackoverflow.com/a/76211564 | ||
# TODO(eric.cousineau): Try using | ||
# https://github.com/easimon/maximize-build-space | ||
|
||
df -h | ||
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 | ||
df -h / | ||
sudo rm -rf \ | ||
/usr/share/dotnet /usr/local/lib/android /opt/ghc \ | ||
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \ | ||
/usr/lib/jvm | ||
df -h / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters