Skip to content

Commit 40eb3a7

Browse files
committed
Merge branch 'main' of github.com:lefticus/json_compiler
2 parents 771b078 + 56cb23d commit 40eb3a7

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

Diff for: .github/workflows/ci.yml

+16-9
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ jobs:
5050
# mingw is determined by this author to be too buggy to support
5151
- os: windows-2019
5252
compiler: gcc-8
53-
54-
# - os: windows-2019
55-
#compiler: llvm
56-
5753
# These have anonalous failures, not sure what is up with no access to a physical Mac.
5854
- os: macos-10.15
5955
compiler: gcc-8
@@ -67,9 +63,16 @@ jobs:
6763

6864

6965
include:
66+
# setup gcov variables for extra compiler versions
67+
- compiler: llvm
68+
gcov: "llvm-cov gcov"
69+
- compiler: gcc-8
70+
gcov: "gcov-8"
71+
7072
# This exists solely to make sure a non-multiconfig build works
7173
- os: ubuntu-20.04
7274
compiler: gcc
75+
gcov: gcov
7376
generator: "Unix Makefiles"
7477
build_type: Debug
7578
developer_mode: On
@@ -118,7 +121,7 @@ jobs:
118121
restore-keys: |
119122
${{ runner.os }}-${{ matrix.compiler }}-${{matrix.build_type}}-${{matrix.generator}}-${{matrix.developer_mode}}
120123
121-
- run: pip3 install conan gcovr cmake ninja
124+
- run: pip3 install conan cmake ninja
122125

123126
- name: Setup Cpp
124127
uses: aminya/setup-cpp@v1
@@ -135,12 +138,12 @@ jobs:
135138

136139
cppcheck: true
137140

138-
gcovr: false
141+
gcovr: true
139142
opencppcoverage: true
140143

141144
- name: Configure CMake
142145
run: |
143-
cmake -S . -B ./build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DENABLE_DEVELOPER_MODE:BOOL=${{matrix.developer_mode}} -DENABLE_LARGE_TESTS:BOOL=${{matrix.large_tests}} -DOPT_ENABLE_COVERAGE:BOOL=TRUE
146+
cmake -S . -B ./build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DENABLE_DEVELOPER_MODE:BOOL=${{matrix.developer_mode}} -DENABLE_LARGE_TESTS:BOOL=${{matrix.large_tests}} -DOPT_ENABLE_COVERAGE:BOOL=${{ matrix.build_type == 'Debug' }}
144147
145148
- name: Build
146149
# Execute the build. You can specify a specific target with "--target <NAME>"
@@ -154,13 +157,17 @@ jobs:
154157
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
155158
run: |
156159
ctest -C ${{matrix.build_type}}
157-
gcovr -j ${{env.nproc}} --delete --root ../ --print-summary --xml-pretty --xml coverage.xml .
160+
pwd
161+
which gcov
162+
gcov --version
163+
gcovr --version
164+
gcovr -j ${{env.nproc}} --root ../ --print-summary --xml-pretty --xml coverage.xml . --verbose --gcov-executable '${{matrix.gcov}}'
158165
159166
- name: Windows - Test and coverage
160167
if: runner.os == 'Windows'
161168
working-directory: ./build
162169
run: |
163-
OpenCppCoverage.exe --sources cpp_starter_project --export_type cobertura:coverage.xml --cover_children -- ctest -C ${{matrix.build_type}}
170+
OpenCppCoverage.exe --export_type cobertura:coverage.xml --cover_children -- ctest -C ${{matrix.build_type}}
164171
165172
- name: Publish to codecov
166173
uses: codecov/codecov-action@v2

0 commit comments

Comments
 (0)