Skip to content

Commit

Permalink
ci: try to fix coverage uploading once more
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 7, 2023
1 parent 1f06439 commit 31b057c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .github/actions-rs/grcov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
branch: true
ignore-not-existing: true
llvm: true
filter: covered
output-type: lcov
output-path: ./lcov.info
prefix-dir: ./target/debug
ignore:
- "/*"
- "C:/*"
- "../*"
18 changes: 7 additions & 11 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,22 @@ jobs:
with:
toolchain: nightly
override: true
- name: Clean
uses: actions-rs/cargo@v1
with:
command: clean
- name: Build & test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-features --no-fail-fast
env:
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'
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'
- id: coverage
name: Generate coverage
uses: actions-rs/[email protected]
with:
args: >
-t lcov
--llvm
--ignore-not-existing
--ignore "/*"
-o ./target/lcov.info
./target/debug/
uses: actions-rs/[email protected]
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 31b057c

Please sign in to comment.