Skip to content

Commit

Permalink
update coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Nov 12, 2024
1 parent 54c4d8d commit 75c2984
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ jobs:
find . -type f -path "*.build/*/debug/*Tests*.o"
mkdir -p coverage
echo "Merging .profraw files..."
llvm-profdata merge -sparse -f $(find . -name "*.profraw") -o coverage/coverage.profdata
find . -name "*.profraw" -print0 | xargs -0 llvm-profdata merge -sparse -f -o coverage/coverage.profdata
llvm-cov show ./your_binary -instr-profile=coverage/coverage.profdata
echo "Generating coverage report..."
find . -type f -path "*.build/*/debug/*Tests*.o" -print | while read object_file; do
echo "Processing $object_file"
llvm-cov export -format=lcov -instr-profile=coverage/coverage.profdata "$object_file" >> coverage/coverage.lcov
Expand Down

0 comments on commit 75c2984

Please sign in to comment.