42
42
- Release
43
43
- Debug
44
44
package_maintainer_mode :
45
- - ON
46
45
- OFF
47
46
build_shared :
48
47
- OFF
55
54
include :
56
55
# Add appropriate variables for gcov version required. This will intentionally break
57
56
# if you try to use a compiler that does not have gcov set
58
- - compiler : gcc-11
59
- gcov_executable : gcov
60
- enable_ipo : On
57
+ # - compiler: gcc-11
58
+ # gcov_executable: gcov
59
+ # enable_ipo: On
61
60
62
61
- compiler : llvm-15.0.2
63
62
enable_ipo : Off
@@ -68,44 +67,44 @@ jobs:
68
67
enable_cppcheck : OFF
69
68
enable_clang_tidy : OFF
70
69
71
- - os : ubuntu-20.04
72
- enable_clang_tidy : On
73
- enable_cppcheck : On
70
+ # - os: ubuntu-20.04
71
+ # enable_clang_tidy: On
72
+ # enable_cppcheck: On
74
73
75
74
# Set up preferred package generators, for given build configurations
76
75
- build_type : Release
77
76
package_maintainer_mode : OFF
78
77
package_generator : TBZ2
79
78
80
79
# This exists solely to make sure a non-multiconfig build works
81
- - os : ubuntu-20.04
82
- compiler : gcc-11
83
- generator : " Unix Makefiles"
84
- build_type : Debug
85
- gcov_executable : gcov
86
- package_maintainer_mode : On
87
- enable_ipo : Off
88
- enable_clang_tidy : On
89
- enable_cppcheck : On
80
+ # - os: ubuntu-20.04
81
+ # compiler: gcc-11
82
+ # generator: "Unix Makefiles"
83
+ # build_type: Debug
84
+ # gcov_executable: gcov
85
+ # package_maintainer_mode: On
86
+ # enable_ipo: Off
87
+ # enable_clang_tidy: On
88
+ # enable_cppcheck: On
90
89
91
90
# Windows msvc builds
92
- - os : windows-2022
93
- compiler : msvc
94
- generator : " Visual Studio 17 2022"
95
- build_type : Debug
96
- package_maintainer_mode : On
97
- enable_ipo : On
98
- enable_clang_tidy : Off
99
- enable_cppcheck : Off
100
-
101
- - os : windows-2022
102
- compiler : msvc
103
- generator : " Visual Studio 17 2022"
104
- build_type : Release
105
- package_maintainer_mode : On
106
- enable_ipo : On
107
- enable_clang_tidy : Off
108
- enable_cppcheck : Off
91
+ # - os: windows-2022
92
+ # compiler: msvc
93
+ # generator: "Visual Studio 17 2022"
94
+ # build_type: Debug
95
+ # package_maintainer_mode: On
96
+ # enable_ipo: On
97
+ # enable_clang_tidy: Off
98
+ # enable_cppcheck: Off
99
+
100
+ # - os: windows-2022
101
+ # compiler: msvc
102
+ # generator: "Visual Studio 17 2022"
103
+ # build_type: Release
104
+ # package_maintainer_mode: On
105
+ # enable_ipo: On
106
+ # enable_clang_tidy: Off
107
+ # enable_cppcheck: Off
109
108
110
109
- os : windows-2022
111
110
compiler : msvc
@@ -124,15 +123,15 @@ jobs:
124
123
enable_clang_tidy : Off
125
124
enable_cppcheck : Off
126
125
127
- - os : windows-2022
128
- compiler : msvc
129
- generator : " Visual Studio 17 2022"
130
- build_type : Release
131
- package_maintainer_mode : On
132
- enable_ipo : On
133
- build_shared : On
134
- enable_clang_tidy : Off
135
- enable_cppcheck : Off
126
+ # - os: windows-2022
127
+ # compiler: msvc
128
+ # generator: "Visual Studio 17 2022"
129
+ # build_type: Release
130
+ # package_maintainer_mode: On
131
+ # enable_ipo: On
132
+ # build_shared: On
133
+ # enable_clang_tidy: Off
134
+ # enable_cppcheck: Off
136
135
137
136
steps :
138
137
- name : Check for llvm version mismatches
@@ -171,27 +170,27 @@ jobs:
171
170
172
171
- name : Configure CMake
173
172
run : |
174
- cmake -S . -B ./build -G "${{matrix.generator}}" -Djson2cpp_ENABLE_CLANG_TIDY:BOOL=${{ matrix.enable_clang_tidy }} -Djson2cpp_ENABLE_CPPCHECK:BOOL=${{ matrix.enable_cppcheck }} -Djson2cpp_ENABLE_IPO=${{matrix.enable_ipo }} -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -Djson2cpp_PACKAGING_MAINTAINER_MODE:BOOL=${{matrix.package_maintainer_mode}} -Djson2cpp_ENABLE_COVERAGE:BOOL=${{ matrix.build_type == 'Debug' }} -DGIT_SHA:STRING=${{ github.sha }}
173
+ cmake -S . -B ./build -G "${{matrix.generator}}" -Djson2cpp_ENABLE_CLANG_TIDY:BOOL=${{ matrix.enable_clang_tidy }} -Djson2cpp_ENABLE_CPPCHECK:BOOL=${{ matrix.enable_cppcheck }} -Djson2cpp_ENABLE_IPO=${{matrix.enable_ipo }} -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -Djson2cpp_PACKAGING_MAINTAINER_MODE:BOOL=${{matrix.package_maintainer_mode}} -Djson2cpp_ENABLE_COVERAGE:BOOL=${{ matrix.build_type == 'Debug' }} -DGIT_SHA:STRING=${{ github.sha }} -DBUILD_TESTINGLBOOL=OFF
175
174
176
175
- name : Build
177
176
# Execute the build. You can specify a specific target with "--target <NAME>"
178
177
run : |
179
178
cmake --build ./build --config ${{matrix.build_type}}
180
179
181
- - name : Unix - Test and coverage
182
- if : runner.os != 'Windows'
183
- working-directory : ./build
184
- # Execute tests defined by the CMake configuration.
185
- # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
186
- run : |
187
- ctest -C ${{matrix.build_type}}
188
- gcovr -j ${{env.nproc}} --delete --root ../ --print-summary --xml-pretty --xml coverage.xml . --gcov-executable '${{ matrix.gcov_executable }}'
189
-
190
- - name : Windows - Test and coverage
191
- if : runner.os == 'Windows'
192
- working-directory : ./build
193
- run : |
194
- OpenCppCoverage.exe --export_type cobertura:coverage.xml --cover_children -- ctest -C ${{matrix.build_type}}
180
+ # - name: Unix - Test and coverage
181
+ # if: runner.os != 'Windows'
182
+ # working-directory: ./build
183
+ # # Execute tests defined by the CMake configuration.
184
+ # # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
185
+ # run: |
186
+ # ctest -C ${{matrix.build_type}}
187
+ # gcovr -j ${{env.nproc}} --delete --root ../ --print-summary --xml-pretty --xml coverage.xml . --gcov-executable '${{ matrix.gcov_executable }}'
188
+
189
+ # - name: Windows - Test and coverage
190
+ # if: runner.os == 'Windows'
191
+ # working-directory: ./build
192
+ # run: |
193
+ # OpenCppCoverage.exe --export_type cobertura:coverage.xml --cover_children -- ctest -C ${{matrix.build_type}}
195
194
196
195
- name : CPack
197
196
if : matrix.package_generator != ''
0 commit comments