From 52677fa55b69333d409bd8bf3fc2342d7d7dc488 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 23 Oct 2026 13:53:45 -0400 Subject: [PATCH] sonarcloud: free runner disk and drop debuginfo so the llvm-cov build fits (#76) --- .github/workflows/sonarcloud.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index ebde62c..14e4afa 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -61,6 +61,10 @@ jobs: uses: storytold/craft-common-actions/actions/checkout-craft-fonts@main with: ref: ${{ inputs.fonts-ref }} + - name: Free disk space + # The instrumented workspace build overflows the ~14 GB free on a stock runner. + if: steps.token.outputs.available == 'true' && hashFiles('Cargo.toml') != '' + run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL - name: Install Linux build dependencies if: steps.token.outputs.available == 'true' && hashFiles('Cargo.toml') != '' uses: storytold/craft-common-actions/actions/install-apt-packages@main @@ -90,6 +94,8 @@ jobs: env: CARGO_TERM_COLOR: always CRAFT_FONTS_DIR: ${{ github.workspace }}/craft-fonts + # Coverage comes from instrumentation, not DWARF; debuginfo is most of target/. + CARGO_PROFILE_DEV_DEBUG: "0" run: > cargo llvm-cov --workspace --ignore-run-fail --lcov --output-path lcov.info --ignore-filename-regex '(^|/)(vendor|xtask)/'