72
72
enable_clang_tidy : On
73
73
enable_cppcheck : On
74
74
75
-
76
75
# Set up preferred package generators, for given build configurations
77
76
- build_type : Release
78
77
package_maintainer_mode : OFF
89
88
enable_clang_tidy : On
90
89
enable_cppcheck : On
91
90
92
-
93
91
# Windows msvc builds
94
92
- os : windows-2022
95
93
compiler : msvc
100
98
enable_clang_tidy : Off
101
99
enable_cppcheck : Off
102
100
103
-
104
101
- os : windows-2022
105
102
compiler : msvc
106
103
generator : " Visual Studio 17 2022"
@@ -110,7 +107,6 @@ jobs:
110
107
enable_clang_tidy : Off
111
108
enable_cppcheck : Off
112
109
113
-
114
110
- os : windows-2022
115
111
compiler : msvc
116
112
generator : " Visual Studio 17 2022"
@@ -119,7 +115,6 @@ jobs:
119
115
enable_clang_tidy : Off
120
116
enable_cppcheck : Off
121
117
122
-
123
118
- os : windows-2022
124
119
compiler : msvc
125
120
generator : " Visual Studio 17 2022"
@@ -129,7 +124,6 @@ jobs:
129
124
enable_clang_tidy : Off
130
125
enable_cppcheck : Off
131
126
132
-
133
127
- os : windows-2022
134
128
compiler : msvc
135
129
generator : " Visual Studio 17 2022"
@@ -140,8 +134,6 @@ jobs:
140
134
enable_clang_tidy : Off
141
135
enable_cppcheck : Off
142
136
143
-
144
-
145
137
steps :
146
138
- name : Check for llvm version mismatches
147
139
if : ${{ contains(matrix.compiler, 'llvm') && !contains(matrix.compiler, env.CLANG_TIDY_VERSION) }}
@@ -172,7 +164,6 @@ jobs:
172
164
ccache : true
173
165
clangtidy : ${{ env.CLANG_TIDY_VERSION }}
174
166
175
-
176
167
cppcheck : true
177
168
178
169
gcovr : true
@@ -210,21 +201,19 @@ jobs:
210
201
211
202
- name : Publish Snapshot Release
212
203
uses : softprops/action-gh-release@v1
213
- if : ${{ (github.ref == 'refs/heads/main') && matrix.package_generator != '' }}
204
+ if : ${{ (github.ref == 'refs/heads/main') && matrix.package_maintainer_mode != 'ON' && matrix. package_generator != '' }}
214
205
with :
215
206
tag_name : " snapshot-${{ github.sha }}"
216
207
files : |
217
208
build/*-*${{ matrix.build_type }}*-*.*
218
209
219
-
220
210
- name : Publish Tagged Release
221
211
uses : softprops/action-gh-release@v1
222
- if : ${{ startsWith (github.ref, 'refs/tags/') && matrix.package_generator != '' }}
212
+ if : ${{ (github.ref == 'refs/heads/main') && matrix.package_maintainer_mode != 'ON' && matrix.package_generator != '' }}
223
213
with :
224
214
files : |
225
215
build/*-*${{ matrix.build_type }}*-*.*
226
216
227
-
228
217
- name : Publish to codecov
229
218
uses : codecov/codecov-action@v2
230
219
with :
0 commit comments