mirror of
https://github.com/storytold/craft-common-actions.git
synced 2026-11-02 18:06:16 +00:00
sonarcloud: free runner disk and drop debuginfo so the llvm-cov build fits (#76)
This commit is contained in:
@@ -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)/'
|
||||
|
||||
Reference in New Issue
Block a user