@@ -17,228 +17,37 @@ name: Build / test
17
17
on : [push, pull_request]
18
18
jobs :
19
19
cmake :
20
- name : Build and test ${{ matrix.name }}
21
- runs-on : ubuntu-20.04
22
- strategy :
23
- matrix :
24
- include :
25
- - name : Clang-6.0
26
- extra_deps : clang-6.0
27
- c_compiler : clang-6.0
28
- cxx_compiler : clang++-6.0
29
- cxx_standard : 11
30
-
31
- - name : Clang-6.0 (C++14)
32
- extra_deps : clang-6.0
33
- c_compiler : clang-6.0
34
- cxx_compiler : clang++-6.0
35
- cxx_standard : 14
36
-
37
- - name : Clang-6.0 (C++17)
38
- extra_deps : clang-6.0
39
- c_compiler : clang-6.0
40
- cxx_compiler : clang++-6.0
41
- cxx_standard : 17
42
-
43
- - name : Clang-7
44
- extra_deps : clang-7
45
- c_compiler : clang-7
46
- cxx_compiler : clang++-7
47
- cxx_standard : 11
48
-
49
- - name : Clang-7 (C++14)
50
- extra_deps : clang-7
51
- c_compiler : clang-7
52
- cxx_compiler : clang++-7
53
- cxx_standard : 14
54
-
55
- - name : Clang-7 (C++17)
56
- extra_deps : clang-7
57
- c_compiler : clang-7
58
- cxx_compiler : clang++-7
59
- cxx_standard : 17
60
-
61
- - name : Clang-8
62
- extra_deps : clang-8
63
- c_compiler : clang-8
64
- cxx_compiler : clang++-8
65
- cxx_standard : 11
66
-
67
- - name : Clang-9
68
- extra_deps : clang-9
69
- c_compiler : clang-9
70
- cxx_compiler : clang++-9
71
- cxx_standard : 11
72
-
73
- - name : Clang-10
74
- extra_deps : clang-10
75
- c_compiler : clang-10
76
- cxx_compiler : clang++-10
77
- cxx_standard : 11
78
-
79
- - name : Clang-10 (C++20)
80
- extra_deps : clang-10
81
- c_compiler : clang-10
82
- cxx_compiler : clang++-10
83
- cxx_standard : 20
84
-
85
- - name : Clang-11
86
- extra_deps : clang-11
87
- c_compiler : clang-11
88
- cxx_compiler : clang++-11
89
- cxx_standard : 11
90
-
91
- - name : Clang-12
92
- extra_deps : clang-12
93
- c_compiler : clang-12
94
- cxx_compiler : clang++-12
95
- cxx_standard : 11
96
-
97
- - name : GCC-8
98
- extra_deps : g++-8
99
- c_compiler : gcc-8
100
- cxx_compiler : g++-8
101
- cxx_flags : -ftrapv
102
- cxx_standard : 11
103
-
104
- - name : GCC-8 (C++14)
105
- extra_deps : g++-8
106
- c_compiler : gcc-8
107
- cxx_compiler : g++-8
108
- cxx_flags : -ftrapv
109
- cxx_standard : 14
110
-
111
- - name : GCC-8 (C++17)
112
- extra_deps : g++-8
113
- c_compiler : gcc-8
114
- cxx_compiler : g++-8
115
- cxx_flags : -ftrapv
116
- cxx_standard : 17
117
-
118
- - name : GCC-9
119
- extra_deps : g++-9
120
- c_compiler : gcc-9
121
- cxx_compiler : g++-9
122
- cxx_flags : -ftrapv
123
- cxx_standard : 11
124
-
125
- - name : GCC-10
126
- extra_deps : g++-10
127
- c_compiler : gcc-10
128
- cxx_compiler : g++-10
129
- cxx_flags : -ftrapv
130
- cxx_standard : 11
20
+ if : false
21
+ runs-on : windows-latest
131
22
132
23
steps :
133
- - name : Harden Runner
134
- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
135
- with :
136
- egress-policy : audit # cannot be block - runner does git checkout
137
-
138
24
- uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.0.0
139
25
140
- - name : Install deps
141
- run : sudo apt-get install ${{ matrix.extra_deps }}
142
-
143
26
- name : Build and test
27
+ shell : bash
144
28
run : |
145
29
export CMAKE_BUILD_PARALLEL_LEVEL=2
146
30
export CTEST_PARALLEL_LEVEL=2
147
- CXXFLAGS=${{ matrix.cxx_flags }} CC=${{ matrix.c_compiler }} CXX=${{ matrix.cxx_compiler }} cmake -DHWY_WARNINGS_ARE_ERRORS=ON -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} -B out .
31
+ cmake CC=clang CXX=clang++ cmake -DHWY_WARNINGS_ARE_ERRORS=ON -DCMAKE_CXX_STANDARD=11 -B out .
148
32
cmake --build out
149
33
ctest --test-dir out
150
34
151
- cmake_ubuntu_2204 :
152
- name : Build and test ${{ matrix.name }}
153
- runs-on : ubuntu-22.04
154
- strategy :
155
- matrix :
156
- include :
157
- - name : Clang-13
158
- extra_deps : clang-13
159
- c_compiler : clang-13
160
- cxx_compiler : clang++-13
161
- cxx_standard : 11
162
-
163
- - name : Clang-14
164
- extra_deps : clang-14
165
- c_compiler : clang-14
166
- cxx_compiler : clang++-14
167
- cxx_standard : 11
168
-
169
- - name : Clang-15
170
- extra_deps : clang-15
171
- c_compiler : clang-15
172
- cxx_compiler : clang++-15
173
- cxx_standard : 11
174
-
175
- - name : Clang-15 (C++20)
176
- extra_deps : clang-15
177
- c_compiler : clang-15
178
- cxx_compiler : clang++-15
179
- cxx_standard : 20
180
-
181
- - name : GCC-11
182
- extra_deps : g++-11
183
- c_compiler : gcc-11
184
- cxx_compiler : g++-11
185
- cxx_flags : -ftrapv
186
- cxx_standard : 11
187
-
188
- - name : GCC-11 (C++20)
189
- extra_deps : g++-11
190
- c_compiler : gcc-11
191
- cxx_compiler : g++-11
192
- cxx_flags : -ftrapv
193
- cxx_standard : 20
194
-
195
- - name : GCC-12
196
- extra_deps : g++-12
197
- c_compiler : gcc-12
198
- cxx_compiler : g++-12
199
- cxx_flags : -ftrapv
200
- cxx_standard : 11
201
-
202
- - name : GCC-12 (C++20)
203
- extra_deps : g++-12
204
- c_compiler : gcc-12
205
- cxx_compiler : g++-12
206
- cxx_flags : -ftrapv
207
- cxx_standard : 20
35
+
36
+ bazel :
37
+ runs-on : windows-latest
208
38
209
39
steps :
210
- - name : Harden Runner
211
- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
212
- with :
213
- egress-policy : audit # cannot be block - runner does git checkout
214
-
215
40
- uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.0.0
216
41
217
- - name : Install deps
218
- run : sudo apt-get install ${{ matrix.extra_deps }}
42
+ - uses : bazelbuild/setup-bazelisk@b39c379c82683a5f25d34f0d062761f62693e0b2 # v3.0.0
219
43
220
- - name : Build and test
44
+ - name : build
45
+ shell : bash
221
46
run : |
222
- export CMAKE_BUILD_PARALLEL_LEVEL=2
223
- export CTEST_PARALLEL_LEVEL=2
224
- CXXFLAGS=${{ matrix.cxx_flags }} CC=${{ matrix.c_compiler }} CXX=${{ matrix.cxx_compiler }} cmake -DHWY_WARNINGS_ARE_ERRORS=ON -DCMAKE_CXX_STANDARD=${{ matrix.cxx_standard }} -B out .
225
- cmake --build out
226
- ctest --test-dir out
47
+ bazel build :all
227
48
228
- bazel :
229
- runs-on : ubuntu-latest
230
- steps :
231
- - name : Harden Runner
232
- uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
233
- with :
234
- egress-policy : audit # cannot be block - runner does git checkout
235
-
236
- - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.0.0
237
-
238
- - uses : bazelbuild/setup-bazelisk@b39c379c82683a5f25d34f0d062761f62693e0b2 # v3.0.0
49
+ - name : test
50
+ shell : bash
51
+ run : bazel test :all
239
52
240
- - uses : actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
241
- with :
242
- path : ~/.cache/bazel
243
- key : bazel-${{ runner.os }}
244
- - run : bazel build //...
53
+
0 commit comments