Skip to content

Commit

Permalink
Fix deprecated command line argument (#37)
Browse files Browse the repository at this point in the history
*Issue #, if available:*

*Description of changes:*


By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
  • Loading branch information
simonmarty authored Nov 20, 2024
1 parent 2f1926a commit 5a11dca
Show file tree
Hide file tree
Showing 10 changed files with 778 additions and 305 deletions.
2 changes: 0 additions & 2 deletions .github/actions-rs/grcov.yml

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Cinstrument-coverage"
RUSTDOCFLAGS: "-Cinstrument-coverage"

jobs:
build:
Expand All @@ -22,17 +24,15 @@ jobs:
with:
toolchain: nightly
override: true
components: rustfmt, clippy
components: rustfmt, clippy, llvm-tools-preview
- name: Install grcov
run: cargo install grcov
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --all-features --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: Code Coverage
uses: actions-rs/[email protected]
run: grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o ./lcov.info
- name: Publish Code Coverage
uses: codecov/codecov-action@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@ fabric.properties

# Built Visual Studio Code Extensions
*.vsix

# Code coverage profiling output files
**.profraw

# LCov file generated by grcov
lcov.info
Loading

0 comments on commit 5a11dca

Please sign in to comment.