-
Notifications
You must be signed in to change notification settings - Fork 744
Clean up disk space in CI before running #2103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds disk space cleanup steps to GitHub Actions workflows to prevent build failures on Linux runners that have limited disk space. The cleanup action removes unused Android libraries, .NET runtime, and Haskell runtime to free up approximately 22GB of space before the build cache is utilized.
Key Changes
- Added
jlumbroso/free-disk-spaceaction to three workflow files before other steps execute - Configured the action to remove tool caches while preserving large packages, Docker images, and swap storage
- Applied consistently across CI, cache creation, and Copilot setup workflows
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/create-cache.yml |
Added disk space cleanup before cache creation steps |
.github/workflows/copilot-setup-steps.yml |
Added disk space cleanup before Copilot setup and checkout |
.github/workflows/ci.yml |
Added disk space cleanup before CI workflow execution |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Our build cache is not small anymore. And if you happen to modify one of the root packages like
coreorast, it can end up being unused.The GHA linux runners only start with a little bit of disk space, and don't even have
/tmp.Use an action to delete stuff off of the runner before we do anything: