fix(ci): add Linux host disk cleanup for CI builds#27
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a Linux-only disk cleanup step to the wasm-tests GitHub Actions job to reclaim space on ubuntu-latest runners before publishing and running WASM runtime tests.
Changes:
- Introduce a
Free disk space (Linux)step that removes large, preinstalled SDKs/tools and optional components (Swift, Mono, Android, GHC, CodeQL, snaps). - Print disk usage before/after cleanup to aid CI diagnostics.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6070009 to
ead1947
Compare
- Use conditional sudo for container compatibility - Use apt-get purge instead of apt remove - Use rm -rf consistently - Add || true on all sudo lines for best-effort cleanup
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What
Adds a Linux host disk cleanup step to all Linux CI jobs to reclaim disk space by removing unused pre-installed software.
Why
Linux CI agents accumulate ~20–30 GB of pre-installed software (Cargo, Rust, Swift, Edge, GHC, Mono, Android SDK, CodeQL, snapd) that is not needed for builds. This cleanup step runs at the start of each Linux job to ensure sufficient disk space.
Details
.github/actions/host-cleanup-linux/action.yml) with inline cleanup scriptif: runner.os == 'Linux')sudo -n(non-interactive) probe to work safely in both host and container environments|| true) withtimeoutguards on snap/apt-get commandsDEBIAN_FRONTEND=noninteractivefor apt-get to prevent dpkg promptsPart of org-wide CI disk cleanup initiative.
Related to https://github.com/unoplatform/uno.rider/pull/480