@@ -40,10 +40,10 @@ jobs:
40
40
- " Ninja Multi-Config"
41
41
build_type :
42
42
- Release
43
- - Debug
43
+ # - Debug
44
44
package_maintainer_mode :
45
45
- ON
46
- - OFF
46
+ # - OFF
47
47
build_shared :
48
48
- OFF
49
49
@@ -55,65 +55,65 @@ jobs:
55
55
include :
56
56
# Add appropriate variables for gcov version required. This will intentionally break
57
57
# 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
58
+ # - compiler: gcc-11
59
+ # gcov_executable: gcov
60
+ # enable_ipo: On
61
61
62
- - compiler : llvm-15.0.2
63
- enable_ipo : Off
64
- gcov_executable : " llvm-cov gcov"
62
+ # - compiler: llvm-15.0.2
63
+ # enable_ipo: Off
64
+ # gcov_executable: "llvm-cov gcov"
65
65
66
- - os : macos-12
67
- enable_ipo : Off
68
- enable_cppcheck : OFF
69
- enable_clang_tidy : OFF
66
+ # - os: macos-12
67
+ # enable_ipo: Off
68
+ # enable_cppcheck: OFF
69
+ # enable_clang_tidy: OFF
70
70
71
- - os : ubuntu-20.04
72
- enable_clang_tidy : On
73
- enable_cppcheck : On
71
+ # - os: ubuntu-20.04
72
+ # enable_clang_tidy: On
73
+ # enable_cppcheck: On
74
74
75
75
# Set up preferred package generators, for given build configurations
76
- - build_type : Release
77
- package_maintainer_mode : OFF
78
- package_generator : TBZ2
76
+ # - build_type: Release
77
+ # package_maintainer_mode: OFF
78
+ # package_generator: TBZ2
79
79
80
80
# 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
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
90
90
91
91
# 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
109
-
110
- - os : windows-2022
111
- compiler : msvc
112
- generator : " Visual Studio 17 2022"
113
- build_type : Debug
114
- package_maintainer_mode : Off
115
- enable_clang_tidy : Off
116
- enable_cppcheck : Off
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
109
+
110
+ # - os: windows-2022
111
+ # compiler: msvc
112
+ # generator: "Visual Studio 17 2022"
113
+ # build_type: Debug
114
+ # package_maintainer_mode: Off
115
+ # enable_clang_tidy: Off
116
+ # enable_cppcheck: Off
117
117
118
118
- os : windows-2022
119
119
compiler : msvc
@@ -124,15 +124,15 @@ jobs:
124
124
enable_clang_tidy : Off
125
125
enable_cppcheck : Off
126
126
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
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
136
136
137
137
steps :
138
138
- name : Check for llvm version mismatches
@@ -171,27 +171,27 @@ jobs:
171
171
172
172
- name : Configure CMake
173
173
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 }}
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 }} -DBUILD_TESTINGLBOOL=OFF
175
175
176
176
- name : Build
177
177
# Execute the build. You can specify a specific target with "--target <NAME>"
178
178
run : |
179
179
cmake --build ./build --config ${{matrix.build_type}}
180
180
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}}
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}}
195
195
196
196
- name : CPack
197
197
if : matrix.package_generator != ''
@@ -201,22 +201,22 @@ jobs:
201
201
202
202
- name : Publish Snapshot Release
203
203
uses : softprops/action-gh-release@v1
204
- if : ${{ (github.ref == 'refs/heads/main') && matrix.package_maintainer_mode ! = 'ON' && matrix.package_generator != '' }}
204
+ if : ${{ (github.ref == 'refs/heads/main') && matrix.package_maintainer_mode = = 'ON' && matrix.package_generator != '' }}
205
205
with :
206
206
tag_name : " snapshot-${{ github.sha }}"
207
207
files : |
208
208
build/*-*${{ matrix.build_type }}*-*.*
209
209
210
- - name : Publish Tagged Release
211
- uses : softprops/action-gh-release@v1
212
- if : ${{ (github.ref == 'refs/heads/main') && matrix.package_maintainer_mode ! = 'ON' && matrix.package_generator != '' }}
213
- with :
214
- files : |
215
- build/*-*${{ matrix.build_type }}*-*.*
216
-
217
- - name : Publish to codecov
218
- uses : codecov/codecov-action@v2
219
- with :
220
- flags : ${{ runner.os }}
221
- name : ${{ runner.os }}-coverage
222
- files : ./build/coverage.xml
210
+ # - name: Publish Tagged Release
211
+ # uses: softprops/action-gh-release@v1
212
+ # if: ${{ (github.ref == 'refs/heads/main') && matrix.package_maintainer_mode = = 'ON' && matrix.package_generator != '' }}
213
+ # with:
214
+ # files: |
215
+ # build/*-*${{ matrix.build_type }}*-*.*
216
+
217
+ # - name: Publish to codecov
218
+ # uses: codecov/codecov-action@v2
219
+ # with:
220
+ # flags: ${{ runner.os }}
221
+ # name: ${{ runner.os }}-coverage
222
+ # files: ./build/coverage.xml
0 commit comments