86
86
export CXX=g++
87
87
mkdir build_rel
88
88
cd build_rel
89
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_NEON=ON -DASTCENC_ISA_NONE=ON -DASTCENC_PACKAGE=arm64 ..
89
+ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON - DASTCENC_ISA_NEON=ON -DASTCENC_ISA_NONE=ON -DASTCENC_PACKAGE=arm64 ..
90
90
make install package -j4
91
91
92
92
- name : Build debug
@@ -132,7 +132,7 @@ jobs:
132
132
export CXX=clang++
133
133
mkdir build_rel
134
134
cd build_rel
135
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_ISA_NONE=ON -DASTCENC_UNITTEST=ON -DASTCENC_PACKAGE=x64 ..
135
+ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON - DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_ISA_NONE=ON -DASTCENC_UNITTEST=ON -DASTCENC_PACKAGE=x64 ..
136
136
make install package -j4
137
137
138
138
- name : Build debug
@@ -188,7 +188,7 @@ jobs:
188
188
export CXX=g++
189
189
mkdir build_rel
190
190
cd build_rel
191
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_ISA_NONE=ON -DASTCENC_UNITTEST=ON -DASTCENC_PACKAGE=x64 ..
191
+ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON - DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_ISA_NONE=ON -DASTCENC_UNITTEST=ON -DASTCENC_PACKAGE=x64 ..
192
192
make install package -j4
193
193
194
194
- name : Build debug
@@ -235,7 +235,7 @@ jobs:
235
235
run : |
236
236
mkdir build_rel
237
237
cd build_rel
238
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNIVERSAL_BUILD=OFF -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64 ..
238
+ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON - DASTCENC_UNIVERSAL_BUILD=OFF -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64 ..
239
239
make install package -j4
240
240
241
241
- name : Build debug
@@ -259,6 +259,10 @@ jobs:
259
259
run : |
260
260
python ./Test/astc_test_image.py --encoder sse4.1 --test-set Small
261
261
262
+ - name : Run unit tests
263
+ run : ctest -E test-unit-avx2
264
+ working-directory : build_rel
265
+
262
266
build-macos-universal-clang :
263
267
name : macOS universal Clang
264
268
runs-on : macos-14
@@ -272,7 +276,7 @@ jobs:
272
276
run : |
273
277
mkdir build_rel
274
278
cd build_rel
275
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNIVERSAL_BUILD=ON -DASTCENC_PACKAGE=x64 ..
279
+ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON - DASTCENC_UNIVERSAL_BUILD=ON -DASTCENC_PACKAGE=x64 ..
276
280
make install package -j4
277
281
278
282
- name : Build debug
@@ -304,6 +308,10 @@ jobs:
304
308
run : |
305
309
python ./Test/astc_test_image.py --encoder universal --test-set Small
306
310
311
+ - name : Run unit tests
312
+ run : ctest -E test-unit-avx2
313
+ working-directory : build_rel
314
+
307
315
build-windows-x64-msvc :
308
316
name : Windows x64 MSVC
309
317
runs-on : windows-2022
@@ -320,7 +328,7 @@ jobs:
320
328
run : |
321
329
mkdir build_rel
322
330
cd build_rel
323
- cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64 ..
331
+ cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON - DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64 ..
324
332
nmake install package
325
333
shell : cmd
326
334
@@ -348,6 +356,10 @@ jobs:
348
356
python ./Test/astc_test_image.py --test-set Small
349
357
shell : cmd
350
358
359
+ - name : Run unit tests
360
+ run : ctest
361
+ working-directory : build_rel
362
+
351
363
build-windows-x64-clangcl :
352
364
name : Windows x64 ClangCL
353
365
runs-on : windows-2022
@@ -364,7 +376,7 @@ jobs:
364
376
run : |
365
377
mkdir build_rel
366
378
cd build_rel
367
- cmake -G "Visual Studio 17 2022" -T ClangCL -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64 ..
379
+ cmake -G "Visual Studio 17 2022" -T ClangCL -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_UNITTEST=ON - DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64 ..
368
380
msbuild astcencoder.sln -property:Configuration=Release
369
381
msbuild PACKAGE.vcxproj -property:Configuration=Release
370
382
msbuild INSTALL.vcxproj -property:Configuration=Release
@@ -374,7 +386,7 @@ jobs:
374
386
run : |
375
387
mkdir build_dbg
376
388
cd build_dbg
377
- cmake -G "Visual Studio 17 2022" -T ClangCL -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON ..
389
+ cmake -G "Visual Studio 17 2022" -T ClangCL -DASTCENC_UNITTEST=ON - DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON ..
378
390
msbuild astcencoder.sln -property:Configuration=Debug
379
391
shell : cmd
380
392
@@ -402,6 +414,10 @@ jobs:
402
414
python ./Test/astc_test_image.py --test-set Small
403
415
shell : cmd
404
416
417
+ - name : Run unit tests
418
+ run : ctest
419
+ working-directory : build_rel
420
+
405
421
build-windows-arm64-clangcl :
406
422
name : Windows arm64 ClangCL
407
423
runs-on : windows-2022
0 commit comments