Skip to content

Commit

Permalink
Use llvm-cov for coverage on clang builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rollbear committed Dec 17, 2022
1 parent a4be1dd commit 5e817e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:
- name: "collect coverage"
run: |
find . -name "self_test.dir" -exec gcov -o {} self_test.cpp.gcno \;
COV=`echo ${{matrix.config.cxx}} | grep -q clang && echo "llvm-cov gcov"|| echo gcov`
find . -name "self_test.dir" -exec ${COV} -abcfu -o {} self_test.cpp.gcno \;
- name: "upload coverage"
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 5e817e1

Please sign in to comment.