diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29491a7..28b6806 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,10 +47,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/grcov@v0.1 if: ${{ matrix.coverage }}