Skip to content

Commit

Permalink
Use regular llvm-cov report
Browse files Browse the repository at this point in the history
  • Loading branch information
garyttierney committed Oct 11, 2024
1 parent 67035da commit 5b47064
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,23 @@ jobs:

- uses: taiki-e/install-action@v2
with:
tool: nextest, cargo-llvm-cov, llvm-cov-pretty
tool: nextest, cargo-llvm-cov

- name: Run tests
run: |
cargo llvm-cov nextest --ignore-filename-regex 'kakadu/' --target ${{ matrix.build_configuration.target }} --include-ffi
cargo llvm-cov report --ignore-filename-regex 'kakadu/' --target ${{ matrix.build_configuration.target }} --include-ffi --lcov --output-path lcov.info
cargo llvm-cov report --ignore-filename-regex 'kakadu/' --target ${{ matrix.build_configuration.target }} --include-ffi --json | llvm-cov-pretty --output-dir coverage-report
cargo llvm-cov nextest $LLVM_COV_ARGS
cargo llvm-cov report $LLVM_COV_ARGS --lcov --output-path lcov.info
cargo llvm-cov report $LLVM_COV_ARGS --html
env:
RUSTFLAGS: "-Ctarget-cpu=${{ matrix.build_configuration.cpu }}"
CARGO_TERM_COLOR: always
LLVM_COV_ARGS: --ignore-filename-regex 'kakadu/' --target ${{ matrix.build_configuration.target }} --include-ffi

- name: Upload coverage report
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: coverage-report/
path: target/llvm-cov/html

deploy:
environment:
Expand Down

0 comments on commit 5b47064

Please sign in to comment.