File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,14 @@ jobs:
7272 run : make test-coverage
7373 - name : Merge and generate coverage report
7474 run : |
75- echo "Finding coverage files..."
76- find . -name "*.lcov" -o - name "*.xml" -o -name "*.json "
75+ echo "Finding profraw files..."
76+ find . find . - name "*.profraw "
7777 echo "Finding Tests files..."
7878 find . -type f -path "*.build/*/debug/*Tests*.o"
7979 mkdir -p coverage
80- profdata_file="coverage/coverage.profdata"
8180 echo "Merging .profraw files..."
82- llvm-profdata merge -sparse $(find . -name "*.profraw") -o "$profdata_file"
83- find . -type f -path "*.build/*/debug/*Tests*.o" | while read object_file; do
81+ llvm-profdata merge -sparse -f $(find . -name "*.profraw") -o coverage/coverage.profdata
82+ find . -type f -path "*.build/*/debug/*Tests*.o" -print | while read object_file; do
8483 echo "Processing $object_file"
8584 llvm-cov export -format=lcov -instr-profile=coverage/coverage.profdata "$object_file" >> coverage/coverage.lcov
8685 done
You can’t perform that action at this time.
0 commit comments