@@ -32,89 +32,98 @@ jobs:
32
32
fail-fast : false
33
33
matrix :
34
34
include :
35
+ - name : " Unit clang16 + clang-tidy"
36
+ cxx : " clang++-16"
37
+ cc : " clang-16"
38
+ pkg : " clang-16 clang-tidy-16 g++-12"
39
+ os : " ubuntu-22.04"
40
+ build : clang_tidy
41
+ build_type : Debug
42
+
35
43
- name : " Unit gcc10 Debug"
36
44
cxx : " g++-10"
37
45
cc : " gcc-10"
46
+ pkg : " gcc-10 g++-10"
38
47
os : " ubuntu-22.04"
39
48
build : unit
40
49
build_type : Debug
41
50
42
51
- name : " Unit gcc11"
43
52
cxx : " g++-11"
44
53
cc : " gcc-11"
54
+ pkg : " gcc-11 g++-11"
45
55
os : " ubuntu-22.04"
46
56
build : unit
47
57
build_type : Release
48
58
49
59
- name : " Unit gcc12 Debug"
50
60
cxx : " g++-12"
51
61
cc : " gcc-12"
52
- os : " ubuntu-22.04"
53
- build : unit
54
- build_type : Debug
55
-
56
- - name : " Unit Clang-16 Debug"
57
- cxx : " clang++-16"
58
- cc : " clang-16"
62
+ pkg : " gcc-12 g++-12"
59
63
os : " ubuntu-22.04"
60
64
build : unit
61
65
build_type : Debug
62
66
63
67
- name : " Integration gcc12"
64
68
cxx : " g++-12"
65
69
cc : " gcc-12"
70
+ pkg : " gcc-12 g++-12"
66
71
os : " ubuntu-22.04"
67
72
build : integration
68
73
build_type : Debug
69
74
70
75
- name : " Documentation"
71
- cxx : " doxygen"
72
- cc : " doxygen"
76
+ pkg : " doxygen"
73
77
os : " ubuntu-22.04"
74
78
build : documentation
75
79
build_type : Debug
76
80
77
81
- name : " Clang Format"
78
- cxx : " clang-format-16"
79
- cc : " clang-16"
82
+ pkg : " clang-format-16"
80
83
os : " ubuntu-22.04"
81
84
build : clang_format
82
85
build_type : Debug
83
86
84
87
- name : " Coverage gcc12"
85
88
cxx : " g++-12"
86
89
cc : " gcc-12"
90
+ pkg : " gcc-12 g++-12"
87
91
os : " ubuntu-22.04"
88
92
build : coverage
89
93
build_type : Debug
90
94
91
95
- name : " Snippet gcc10"
92
96
cxx : " g++-10"
93
97
cc : " gcc-10"
98
+ pkg : " gcc-10 g++-10"
94
99
build : snippet
95
100
build_type : Debug
96
101
97
102
- name : " Snippet gcc12"
98
103
cxx : " g++-12"
99
104
cc : " gcc-12"
105
+ pkg : " gcc-12 g++-12"
100
106
build : snippet
101
107
build_type : Release
102
108
103
109
- name : " Snippet Clang-16"
104
110
cxx : " clang++-16"
105
111
cc : " clang-16"
112
+ pkg : " clang-16 g++-12"
106
113
build : snippet
107
114
build_type : Release
108
115
109
116
- name : " Performance gcc12"
110
117
cxx : " g++-12"
111
118
cc : " gcc-12"
119
+ pkg : " gcc-12 g++-12"
112
120
build : performance
113
121
build_type : Release
114
122
115
123
- name : " Header gcc12"
116
124
cxx : " g++-12"
117
125
cc : " gcc-12"
126
+ pkg : " gcc-12 g++-12"
118
127
build : header
119
128
build_type : Release
120
129
@@ -136,7 +145,7 @@ jobs:
136
145
137
146
- name : Configure APT (llvm)
138
147
continue-on-error : true
139
- if : matrix.cc == 'clang-16'
148
+ if : contains( matrix.pkg, 'clang')
140
149
run : |
141
150
sudo apt-add-repository --no-update --yes "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main"
142
151
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
@@ -155,13 +164,8 @@ jobs:
155
164
- name : Install ccache
156
165
run : sudo apt-get install --yes ccache
157
166
158
- - name : Install compiler ${{ matrix.cxx }}
159
- if : matrix.cc != 'clang-16'
160
- run : sudo apt-get install --yes ${{ matrix.cxx }}
161
-
162
- - name : Install compiler ${{ matrix.cxx }}
163
- if : matrix.cc == 'clang-16'
164
- run : sudo apt-get install --yes g++-12 ${{ matrix.cc }}
167
+ - name : Install compiler/tool ${{ matrix.pkg }}
168
+ run : sudo apt-get install --yes ${{ matrix.pkg }}
165
169
166
170
- name : Install documentation deps
167
171
if : matrix.build == 'documentation'
@@ -211,7 +215,7 @@ jobs:
211
215
make -k -j2
212
216
ccache -sv
213
217
- name : Run tests
214
- if : matrix.build != 'coverage'
218
+ if : ${{ matrix.build != 'coverage' && matrix.build != 'clang_format' }}
215
219
run : |
216
220
cd biocpp-core-build
217
221
ctest . -j2 --output-on-failure
0 commit comments