From c02af5deef60f88fc875d7c1e05fc274062bcea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Omn=C3=A8s?= Date: Mon, 12 Aug 2024 10:13:47 +0200 Subject: [PATCH] Free up space for SonarCloud job (#2315) https://github.com/marketplace/actions/maximize-build-disk-space ``` Run df -h Filesystem Size Used Avail Use% Mounted on ... /dev/mapper/buildvg-buildlv 85G 24K 85G 1% /home/runner/work/Antares_Simulator/Antares_Simulator ``` Nice --- .github/workflows/sonarcloud.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index c5bbc5a473..e6f1cf608f 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -23,6 +23,18 @@ jobs: BUILD_WRAPPER_OUT_DIR: ${{ github.workspace }}/_build/output # Directory where build-wrapper output will be placed steps: + # Disk space on / is insufficient, leading to errors + # We use this 'hack' to remove unused stuff (android, dotnet, etc.) and change partition layout + - name: Maximize build space + uses: easimon/maximize-build-space@v10 + with: + root-reserve-mb: 5120 + swap-size-mb: 1024 + remove-dotnet: true + remove-android: true + remove-haskell: true + remove-codeql: true + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis