diff options
| author | Jakub Beránek <jakub.beranek@vsb.cz> | 2024-10-11 09:03:16 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-10-13 21:58:24 +0200 |
| commit | 71cc27058d93693799839ef16e1dc5a0db789296 (patch) | |
| tree | 06aa3af78c78f830efdf6f3834d27f5b1ad194de | |
| parent | b1936c9179d80baab7a158b4659c1b6775e60b73 (diff) | |
| download | rust-71cc27058d93693799839ef16e1dc5a0db789296.tar.gz rust-71cc27058d93693799839ef16e1dc5a0db789296.zip | |
Free up disk space on CI Linux runners
| -rw-r--r-- | .github/workflows/ci.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 003c1e5d7eb..005ccb34255 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,6 +104,18 @@ jobs: with: fetch-depth: 2 + # Free up disk space on Linux by removing preinstalled components that + # we do not need. We do this to enable some of the less resource + # intensive jobs to run on free runners, which however also have + # less disk space. + - name: free up disk space + uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be + if: contains(matrix.os, 'ubuntu') + with: + # Removing packages with APT saves ~5 GiB, but takes several + # minutes (and potentially removes important packages). + large-packages: false + # Rust Log Analyzer can't currently detect the PR number of a GitHub # Actions build on its own, so a hint in the log message is needed to # point it in the right direction. |
