Skip to content

Commit

Permalink
Leave panic flags as unwind in coverage CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SOF3 committed Nov 27, 2021
1 parent 3fe3079 commit 3c42e39
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
with:
toolchain: nightly
profile: default
override: true
- run: cargo +nightly fmt --all -- --check
lint:
name: clippy lint
Expand All @@ -32,6 +33,7 @@ jobs:
toolchain: ${{matrix.toolchain}}
profile: default
default: true
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -56,20 +58,29 @@ jobs:
toolchain: ${{matrix.toolchain}}
profile: default
default: true
override: true
- name: cargo test
run: "cargo test --all ${{matrix.stability}}"
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: default
default: true
- name: cargo test
if: ${{ matrix.toolchain != 'nightly' || matrix.stability != '' }}
run: "cargo test --all ${{matrix.stability}}"
- name: cargo test
if: ${{ matrix.toolchain == 'nightly' && matrix.stability == '' }}
run: "cargo test --no-fail-fast --all"
run: "cargo test --all --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"
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off'
- id: coverage
name: coverage report
if: ${{ matrix.toolchain == 'nightly' && matrix.stability == '' }}
uses: actions-rs/[email protected]
- name: upload to codecov
uses: codecov/[email protected]
with:
files: ${{ steps.coverage.outputs.report }}

0 comments on commit 3c42e39

Please sign in to comment.