From f4d0962352caad53dcb198e4ae861e04648c48bf Mon Sep 17 00:00:00 2001 From: FredApps Date: Wed, 11 Nov 2026 13:44:07 +0100 Subject: [PATCH] sonarcloud: free disk space in the background in the archive build As gate.yml does: the build starts at once and the space is free before it needs it. The scan job's cleanup is unchanged. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/sonarcloud.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 13d12d3..af2168e 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -219,8 +219,10 @@ jobs: run: | echo "CRAFT_FONTS_DIR=$CRAFT_FONTS_PATH" >> "$GITHUB_ENV" echo "CRAFT_FONTS_REQUIRED=1" >> "$GITHUB_ENV" + # In the background, as in gate.yml: the space is free before the build needs it. - name: Free disk space - run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL + run: | + nohup sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL /dev/null 2>&1 & - name: Install Linux build dependencies uses: storytold/craft-common-actions/actions/install-apt-packages@main with: