2
2
run-name : ${{ github.actor }} is testing out GitHub Actions 🚀
3
3
4
4
on :
5
+ pull_request :
6
+ branches :
7
+ - main
5
8
push :
6
9
workflow_dispatch :
7
10
@@ -50,55 +53,55 @@ jobs:
50
53
51
54
- name : Run with automagic detection
52
55
run : |
53
- cmake -S. -B ./build_auto -T ${{matrix.toolkit}}
56
+ cmake -S. -B ./build_auto -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON
54
57
cmake --build ./build_auto --config ${{matrix.config}}
55
58
ctest --verbose -C ${{matrix.config}} --test-dir ./build_auto
56
59
57
60
- name : Run with GLM_FORCE_PURE
58
61
run : |
59
- cmake -S. -B ./build_pure_std -T ${{matrix.toolkit}} -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
62
+ cmake -S. -B ./build_pure_std -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON - DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
60
63
cmake --build ./build_pure_std --config ${{matrix.config}}
61
64
ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_std
62
65
63
66
- name : Run with GLM_FORCE_PURE and language extensions
64
67
run : |
65
- cmake -S. -B ./build_pure_ext -T ${{matrix.toolkit}} -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
68
+ cmake -S. -B ./build_pure_ext -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON - DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
66
69
cmake --build ./build_pure_ext --config ${{matrix.config}}
67
70
ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_ext
68
71
69
72
- name : Run with GLM_ENABLE_SIMD_SSE2
70
73
run : |
71
- cmake -S. -B ./build_sse2_std -T ${{matrix.toolkit}} -DGLM_FORCE_PURE =ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
74
+ cmake -S. -B ./build_sse2_std -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_SSE2 =ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
72
75
cmake --build ./build_sse2_std --config ${{matrix.config}}
73
76
ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_std
74
77
75
78
- name : Run with GLM_ENABLE_SIMD_SSE2 and language extensions
76
79
run : |
77
- cmake -S. -B ./build_sse2_ext -T ${{matrix.toolkit}} -DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
80
+ cmake -S. -B ./build_sse2_ext -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
78
81
cmake --build ./build_sse2_ext --config ${{matrix.config}}
79
82
ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_ext
80
83
81
84
- name : Run with GLM_ENABLE_SIMD_AVX
82
85
run : |
83
- cmake -S. -B ./build_avx1_std -T ${{matrix.toolkit}} -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
86
+ cmake -S. -B ./build_avx1_std -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
84
87
cmake --build ./build_avx1_std --config ${{matrix.config}}
85
88
ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_std
86
89
87
90
- name : Run with GLM_ENABLE_SIMD_AVX and language extensions
88
91
run : |
89
- cmake -S. -B ./build_avx1_ext -T ${{matrix.toolkit}} -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
92
+ cmake -S. -B ./build_avx1_ext -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
90
93
cmake --build ./build_avx1_ext --config ${{matrix.config}}
91
94
ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_ext
92
95
93
96
- name : Run with GLM_ENABLE_SIMD_AVX2
94
97
run : |
95
- cmake -S. -B ./build_avx2_std -T ${{matrix.toolkit}} -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
98
+ cmake -S. -B ./build_avx2_std -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
96
99
cmake --build ./build_avx2_std --config ${{matrix.config}}
97
100
ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx2_std
98
101
99
102
- name : Run with GLM_ENABLE_SIMD_AVX2 and language extensions
100
103
run : |
101
- cmake -S. -B ./build_avx2_ext -T ${{matrix.toolkit}} -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
104
+ cmake -S. -B ./build_avx2_ext -T ${{matrix.toolkit}} -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
102
105
cmake --build ./build_avx2_ext --config ${{matrix.config}}
103
106
ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx2_ext
104
107
@@ -113,6 +116,8 @@ jobs:
113
116
exclude :
114
117
- os : ubuntu-20.04
115
118
std : 20
119
+ - os : ubuntu-latest
120
+ std : 98
116
121
117
122
steps :
118
123
- run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
@@ -130,65 +135,62 @@ jobs:
130
135
run : cmake --version
131
136
- name : Run with automagic detection
132
137
run : |
133
- cmake -S. -B ./build_auto
138
+ cmake -S. -B ./build_auto -DGLM_BUILD_TESTS=ON
134
139
cmake --build ./build_auto --config ${{matrix.config}}
135
140
ctest --verbose -C ${{matrix.config}} --test-dir ./build_auto
136
141
137
142
- name : Run with GLM_FORCE_PURE
138
143
run : |
139
- cmake -S. -B ./build_pure_std -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
144
+ cmake -S. -B ./build_pure_std -DGLM_BUILD_TESTS=ON - DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
140
145
cmake --build ./build_pure_std --config ${{matrix.config}}
141
146
ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_std
142
147
- name : Run with GLM_FORCE_PURE and language extensions
143
148
run : |
144
- cmake -S. -B ./build_pure_ext -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
149
+ cmake -S. -B ./build_pure_ext -DGLM_BUILD_TESTS=ON - DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
145
150
cmake --build ./build_pure_ext --config ${{matrix.config}}
146
151
ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_ext
147
152
148
153
- name : Run with GLM_ENABLE_SIMD_SSE2
149
154
run : |
150
- cmake -S. -B ./build_sse2_std -DGLM_FORCE_PURE =ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
155
+ cmake -S. -B ./build_sse2_std -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_SSE2 =ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
151
156
cmake --build ./build_sse2_std --config ${{matrix.config}}
152
157
ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_std
153
158
- name : Run with GLM_ENABLE_SIMD_SSE2 and language extensions
154
159
run : |
155
- cmake -S. -B ./build_sse2_ext -DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
160
+ cmake -S. -B ./build_sse2_ext -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
156
161
cmake --build ./build_sse2_ext --config ${{matrix.config}}
157
162
ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_ext
158
163
159
164
- name : Run with GLM_ENABLE_SIMD_AVX
160
165
run : |
161
- cmake -S. -B ./build_avx1_std -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
166
+ cmake -S. -B ./build_avx1_std -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
162
167
cmake --build ./build_avx1_std --config ${{matrix.config}}
163
168
ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_std
164
169
- name : Run with GLM_ENABLE_SIMD_AVX and language extensions
165
170
run : |
166
- cmake -S. -B ./build_avx1_ext -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
171
+ cmake -S. -B ./build_avx1_ext -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
167
172
cmake --build ./build_avx1_ext --config ${{matrix.config}}
168
173
ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_ext
169
174
170
175
- name : Run with GLM_ENABLE_SIMD_AVX2
171
176
run : |
172
- cmake -S. -B ./build_avx2_std -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
177
+ cmake -S. -B ./build_avx2_std -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
173
178
cmake --build ./build_avx2_std --config ${{matrix.config}}
174
179
ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx2_std
175
180
- name : Run with GLM_ENABLE_SIMD_AVX2 and language extensions
176
181
run : |
177
- cmake -S. -B ./build_avx2_ext -DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
182
+ cmake -S. -B ./build_avx2_ext -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_AVX2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
178
183
cmake --build ./build_avx2_ext --config ${{matrix.config}}
179
184
ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx2_ext
180
185
181
- macos :
186
+ macos-13 :
182
187
runs-on : ${{ matrix.os }}
183
188
strategy :
184
189
fail-fast : false
185
190
matrix :
186
- os : [macos-latest, macos-11 ]
191
+ os : [macos-13 ]
187
192
std : [98, 11, 14, 17, 20]
188
193
config : [Debug, Release]
189
- exclude :
190
- - os : macos-11
191
- std : 20
192
194
193
195
steps :
194
196
- run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
@@ -206,40 +208,92 @@ jobs:
206
208
run : cmake --version
207
209
- name : Run with automagic detection
208
210
run : |
209
- cmake -S. -B ./build_auto
211
+ cmake -S. -B ./build_auto -DGLM_BUILD_TESTS=ON
210
212
cmake --build ./build_auto --config ${{matrix.config}}
211
213
ctest --verbose -C ${{matrix.config}} --test-dir ./build_auto
212
214
213
215
- name : Run with GLM_FORCE_PURE
214
216
run : |
215
- cmake -S. -B ./build_pure_std -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
217
+ cmake -S. -B ./build_pure_std -DGLM_BUILD_TESTS=ON - DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
216
218
cmake --build ./build_pure_std --config ${{matrix.config}}
217
219
ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_std
218
220
- name : Run with GLM_FORCE_PURE and language extensions
219
221
run : |
220
- cmake -S. -B ./build_pure_ext -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
222
+ cmake -S. -B ./build_pure_ext -DGLM_BUILD_TESTS=ON - DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
221
223
cmake --build ./build_pure_ext --config ${{matrix.config}}
222
224
ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_ext
223
225
224
226
- name : Run with GLM_ENABLE_SIMD_SSE2
225
227
run : |
226
- cmake -S. -B ./build_sse2_std -DGLM_FORCE_PURE =ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
228
+ cmake -S. -B ./build_sse2_std -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_SSE2 =ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
227
229
cmake --build ./build_sse2_std --config ${{matrix.config}}
228
230
ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_std
229
231
- name : Run with GLM_ENABLE_SIMD_SSE2 and language extensions
230
232
run : |
231
- cmake -S. -B ./build_sse2_ext -DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
233
+ cmake -S. -B ./build_sse2_ext -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_SSE2=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
232
234
cmake --build ./build_sse2_ext --config ${{matrix.config}}
233
235
ctest --verbose -C ${{matrix.config}} --test-dir ./build_sse2_ext
234
236
235
237
- name : Run with GLM_ENABLE_SIMD_AVX
236
238
run : |
237
- cmake -S. -B ./build_avx1_std -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
239
+ cmake -S. -B ./build_avx1_std -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
238
240
cmake --build ./build_avx1_std --config ${{matrix.config}}
239
241
ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_std
240
242
- name : Run with GLM_ENABLE_SIMD_AVX and language extensions
241
243
run : |
242
- cmake -S. -B ./build_avx1_ext -DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
244
+ cmake -S. -B ./build_avx1_ext -DGLM_BUILD_TESTS=ON - DGLM_ENABLE_SIMD_AVX=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
243
245
cmake --build ./build_avx1_ext --config ${{matrix.config}}
244
246
ctest --verbose -C ${{matrix.config}} --test-dir ./build_avx1_ext
245
-
247
+
248
+ macos-latest :
249
+ runs-on : ${{ matrix.os }}
250
+ strategy :
251
+ fail-fast : false
252
+ matrix :
253
+ os : [macos-latest]
254
+ std : [98, 11, 14, 17, 20]
255
+ config : [Debug, Release]
256
+
257
+ steps :
258
+ - run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
259
+ - run : echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
260
+ - run : echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
261
+ - name : Check out repository code
262
+ uses : actions/checkout@v4
263
+ - run : echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
264
+ - run : echo "🖥️ The workflow is now ready to test your code on the runner."
265
+ - name : List files in the repository
266
+ run : |
267
+ ls ${{ github.workspace }}
268
+ - run : echo "🍏 This job's status is ${{ job.status }}."
269
+ - name : CMake Version
270
+ run : cmake --version
271
+ - name : Run with automagic detection
272
+ run : |
273
+ cmake -S. -B ./build_auto -DGLM_BUILD_TESTS=ON
274
+ cmake --build ./build_auto --config ${{matrix.config}}
275
+ ctest --verbose -C ${{matrix.config}} --test-dir ./build_auto
276
+
277
+ - name : Run with GLM_FORCE_PURE
278
+ run : |
279
+ cmake -S. -B ./build_pure_std -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
280
+ cmake --build ./build_pure_std --config ${{matrix.config}}
281
+ ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_std
282
+ - name : Run with GLM_FORCE_PURE and language extensions
283
+ run : |
284
+ cmake -S. -B ./build_pure_ext -DGLM_BUILD_TESTS=ON -DGLM_FORCE_PURE=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
285
+ cmake --build ./build_pure_ext --config ${{matrix.config}}
286
+ ctest --verbose -C ${{matrix.config}} --test-dir ./build_pure_ext
287
+
288
+ - name : Run with GLM_ENABLE_SIMD_NEON
289
+ run : |
290
+ cmake -S. -B ./build_neon_std -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_NEON=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON
291
+ cmake --build ./build_neon_std --config ${{matrix.config}}
292
+ ctest --verbose -C ${{matrix.config}} --test-dir ./build_neon_std
293
+ - name : Run with GLM_ENABLE_SIMD_NEON and language extensions
294
+ run : |
295
+ cmake -S. -B ./build_neon_ext -DGLM_BUILD_TESTS=ON -DGLM_ENABLE_SIMD_NEON=ON -DGLM_ENABLE_CXX_${{matrix.std}}=ON -DGLM_ENABLE_LANG_EXTENSIONS=ON
296
+ cmake --build ./build_neon_ext --config ${{matrix.config}}
297
+ ctest --verbose -C ${{matrix.config}} --test-dir ./build_neon_ext
298
+
299
+
0 commit comments