File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 5858 -B build \
5959 -DCMAKE_CXX_COMPILER=${{matrix.config.cxx}} \
6060 -DCMAKE_CXX_STANDARD=${{matrix.config.std}} \
61- -DCMAKE_CXX_FLAGS="${STDLIB} -Wall -Wextra -Wconversion -pedantic -Werror" \
61+ -DCMAKE_CXX_FLAGS="${STDLIB} -Wall -Wextra -Wconversion -pedantic -Werror --coverage " \
6262 -DCMAKE_PREFIX_PATH="${LIBRARY_PREFIX}" \
6363 -DCMAKE_BUILD_TYPE=Debug
6464 - name : " build"
@@ -73,15 +73,14 @@ jobs:
7373
7474 - name : " collect coverage"
7575 run : |
76- kcov --skip-solibs ./coverage --include-pattern=strong_type.hpp ./build/self_test || true
77- kcov --skip-solibs ./coverage --include-pattern=strong_type.hpp ./build/test_fmt8/test_fmt8 || true
78- kcov --skip-solibs ./coverage --include-pattern=strong_type.hpp ./build/test_fmt9/test_fmt9 || true
76+ COV=`echo ${{matrix.config.cxx}} | grep -q clang && echo "llvm-cov gcov" || echo gcov`
77+ echo ${COV} -abcfu `find . -name "test*.gcno"`
78+ ${COV} -abcfu `find . -name "test*.gcno"`
7979
8080 - name : " upload coverage"
8181 uses : codecov/codecov-action@v3
8282 with :
83- directory : coverage
84- files : " *test*/cobertura.xml"
83+ files : " strong_type.hpp.gcov"
8584 name : " Linux ${{matrix.config.cxx}} C++${{matrix.config.std}} ${{matrix.config.stdlib}}"
8685 fail_ci_if_error : false
8786 verbose : true
You can’t perform that action at this time.
0 commit comments