Skip to content

Commit 01473d1

Browse files
committed
update coverage
1 parent e3bb918 commit 01473d1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/coverage.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)