Skip to content

Commit

Permalink
Free up additional disk space on GitHub runner
Browse files Browse the repository at this point in the history
Building with coverage support creates large binaries as well as
coverage records, all of which consume considerable disk space.
2cee3b1 appears to have pushed this over the top for it creates a
library archive consuming another 2.2 GB of disk space.

This additional build step cleans out binaries that we do not need, such
as Haskell, .NET, or Android SDKs. This frees up 28 GB of memory (out of
a total of 84 GB).
  • Loading branch information
tautschnig committed Mar 6, 2023
1 parent ec46ac8 commit a4989b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,12 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
- name: Remove unnecessary software to free up disk space
run: |
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
df -h
sudo rm -rf /usr/share/dotnet /usr/local/lib/* /opt/*
df -h
- name: Download testing and coverage dependencies
env:
# This is needed in addition to -yq to prevent apt-get from asking for
Expand Down

0 comments on commit a4989b9

Please sign in to comment.