From cf9cc1dcf294c19f693021d82f3f1c28d0dd408b Mon Sep 17 00:00:00 2001 From: Willem Deconinck Date: Thu, 13 Feb 2025 15:19:30 +0100 Subject: [PATCH] Free disk space for nvhpc --- .github/workflows/build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 66c1f50d5..09951abc0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -170,6 +170,26 @@ jobs: path: ${{ env.DEPS_DIR }} key: deps-${{ matrix.os }}-${{ matrix.compiler }}-v1 + + - name: Free Disk Space (Ubuntu) + # Free up disk space for nvhpc + uses: jlumbroso/free-disk-space@main + if: contains( matrix.compiler, 'nvhpc' ) + continue-on-error: true + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: false + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true + - name: Install NVHPC compiler if: contains( matrix.compiler, 'nvhpc' ) shell: bash -eux {0}