diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9256f2d..1751f93 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,14 +17,16 @@ jobs: - 5000:5000 steps: + # https://github.com/easimon/maximize-build-space/blob/6ae56c86ea8db291ae39f62352a412c36ab8179b/action.yml#L110-L126 - name: Maximize build space - uses: easimon/maximize-build-space@master - with: - remove-android: 'true' - remove-dotnet: 'true' - remove-haskell: 'true' - remove-codeql: 'true' - + run: | + a=$(df / | tail -n 1 | awk '{print $4}') + sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL + b=$(df / | tail -n 1 | awk '{print $4}') + d="$(expr $(($a-$b)) / 1000000000 )GB" + echo "Saved $d" + df -hl + - uses: actions/checkout@v3 # QEMU is used for non-x86_64 builds