Skip to content

Commit

Permalink
Set correct environment for gcov
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos authored and Gitlab CI translation file sync committed May 31, 2023
1 parent 8ac102a commit 2ee397e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,22 @@ jobs:

- name: Run tests
uses: actions-rs/cargo@v1
if: ${{ !matrix.coverage }}
with:
command: test
args: --all-targets --no-fail-fast

- name: Run tests
uses: actions-rs/cargo@v1
if: ${{ matrix.coverage }}
with:
command: test
args: --all-targets --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'

- name: Generate code coverage
uses: actions-rs/[email protected]
if: ${{ matrix.coverage }}
Expand Down

0 comments on commit 2ee397e

Please sign in to comment.