Skip to content

Conversation

@jakebailey
Copy link
Member

@jakebailey jakebailey commented Nov 15, 2025

Our build cache is not small anymore. And if you happen to modify one of the root packages like core or ast, 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:

================================================================================
********************************************************************************
=> Android library: Saved 12GiB
********************************************************************************
********************************************************************************
=> Haskell runtime: Saved 6.2GiB
********************************************************************************
================================================================================

Copilot AI review requested due to automatic review settings November 15, 2025 06:40
Copilot finished reviewing on behalf of jakebailey November 15, 2025 06:41
Copy link
Contributor

Copilot AI left a 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-space action 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>
@jakebailey jakebailey added this pull request to the merge queue Nov 17, 2025
Merged via the queue into main with commit 26434e1 Nov 17, 2025
22 checks passed
@jakebailey jakebailey deleted the jabaile/clean-ci-runners branch November 17, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants