Skip to content

Commit

Permalink
coverall: bump rustc nightly version (#27)
Browse files Browse the repository at this point in the history
Problem: `zeroize` bumped the MSRV to 1.60, it makes 2021 nightly incompatible.
However, the newest `rustc` versions have a profile coverage regression:
rust-lang/rust#100125

To keep a positive coverage >84%:
- ignore comment sections
- ignore `src/error.rs`
  • Loading branch information
fadeevab authored May 26, 2024
1 parent 37d60d7 commit 0d67106
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Select Rust nightly build
run: rustup default nightly-2021-11-11
run: rustup default nightly
- name: Test with profiling
env:
CARGO_INCREMENTAL: 0
Expand All @@ -51,9 +51,10 @@ jobs:
- name: Run grcov
run: |
mkdir coverage
./grcov ./target/debug/ -s . -t lcov --llvm --branch --ignore-not-existing --ignore "/*" \
--excl-line '#\[|=> panic!|unreachable!|Io\(std::io::Error\)' \
--excl-br-line '#\[|=> panic!|unreachable!|assert_..!' -o ./coverage/lcov.info
./grcov ./target/debug/ -s . -t lcov --llvm --branch --ignore-not-existing \
--ignore "/*" --ignore "src/error.rs" \
--excl-line '#\[|=> panic!|unreachable!|Io\(std::io::Error\)|//!|///|^[ }]*$' \
--excl-br-line '#\[|=> panic!|unreachable!|assert_..!|//!|///' -o ./coverage/lcov.info
- name: Send to Coveralls
uses: coverallsapp/github-action@master
with:
Expand Down

0 comments on commit 0d67106

Please sign in to comment.