sonarcloud: free runner disk and drop debuginfo so the llvm-cov build fits (#76)

This commit is contained in:
Dylan M. Taylor
2026-10-23 13:53:45 -04:00
committed by GitHub
parent 1c51ea7025
commit 52677fa55b
+6
View File
@@ -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)/'