ci: add clang code coverage check #10

Merged
light7734 merged 12 commits from ci/code_cov into main 2025-07-21 09:37:45 +00:00
Showing only changes of commit a1e94e9814 - Show all commits

View file

@ -30,6 +30,6 @@ done
llvm-profdata merge --input-files './build/coverage/list' -o "./build/coverage/merged.profdata"
find ./modules -type f -name "*.profraw" -exec rm -fv {} +
LLVM_COV_SHOW=$(llvm-cov show -instr-profile="./build/coverage/merged.profdata" $(find ./build -type f -name "tests" -executable -exec printf -- '-object %s ' {} \;) -ignore-filename-regex="./modules/[^/]+/tests")
echo "${LLVM_COV_SHOW}" > "./build/coverage/coverage.txt"
LLVM_COV_SHOW=$(llvm-cov show -instr-profile='./build/coverage/merged.profdata' $(find ./build -type f -name '*_tests' -executable -exec printf -- '-object %s ' {} \;) -ignore-filename-regex='./modules/[^/]+/*_tests')
echo "${LLVM_COV_SHOW}" > './build/coverage/coverage.txt'
wget -qO- "https://codecov.io/bash" | bash