Skip to content

Commit a4989b9

Browse files
committed
Free up additional disk space on GitHub runner
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).
1 parent ec46ac8 commit a4989b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,12 @@ jobs:
910910
uses: actions/checkout@v3
911911
with:
912912
submodules: recursive
913+
- name: Remove unnecessary software to free up disk space
914+
run: |
915+
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
916+
df -h
917+
sudo rm -rf /usr/share/dotnet /usr/local/lib/* /opt/*
918+
df -h
913919
- name: Download testing and coverage dependencies
914920
env:
915921
# This is needed in addition to -yq to prevent apt-get from asking for

0 commit comments

Comments
 (0)