8686 export CXX=g++
8787 mkdir build_rel
8888 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 ..
9090 make install package -j4
9191
9292 - name : Build debug
@@ -132,7 +132,7 @@ jobs:
132132 export CXX=clang++
133133 mkdir build_rel
134134 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 ..
136136 make install package -j4
137137
138138 - name : Build debug
@@ -188,7 +188,7 @@ jobs:
188188 export CXX=g++
189189 mkdir build_rel
190190 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 ..
192192 make install package -j4
193193
194194 - name : Build debug
@@ -235,7 +235,7 @@ jobs:
235235 run : |
236236 mkdir build_rel
237237 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 ..
239239 make install package -j4
240240
241241 - name : Build debug
@@ -259,6 +259,10 @@ jobs:
259259 run : |
260260 python ./Test/astc_test_image.py --encoder sse4.1 --test-set Small
261261
262+ - name : Run unit tests
263+ run : ctest -E test-unit-avx2
264+ working-directory : build_rel
265+
262266 build-macos-universal-clang :
263267 name : macOS universal Clang
264268 runs-on : macos-14
@@ -272,7 +276,7 @@ jobs:
272276 run : |
273277 mkdir build_rel
274278 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 ..
276280 make install package -j4
277281
278282 - name : Build debug
@@ -304,6 +308,10 @@ jobs:
304308 run : |
305309 python ./Test/astc_test_image.py --encoder universal --test-set Small
306310
311+ - name : Run unit tests
312+ run : ctest -E test-unit-avx2
313+ working-directory : build_rel
314+
307315 build-windows-x64-msvc :
308316 name : Windows x64 MSVC
309317 runs-on : windows-2022
@@ -320,7 +328,7 @@ jobs:
320328 run : |
321329 mkdir build_rel
322330 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 ..
324332 nmake install package
325333 shell : cmd
326334
@@ -348,6 +356,10 @@ jobs:
348356 python ./Test/astc_test_image.py --test-set Small
349357 shell : cmd
350358
359+ - name : Run unit tests
360+ run : ctest
361+ working-directory : build_rel
362+
351363 build-windows-x64-clangcl :
352364 name : Windows x64 ClangCL
353365 runs-on : windows-2022
@@ -364,7 +376,7 @@ jobs:
364376 run : |
365377 mkdir build_rel
366378 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 ..
368380 msbuild astcencoder.sln -property:Configuration=Release
369381 msbuild PACKAGE.vcxproj -property:Configuration=Release
370382 msbuild INSTALL.vcxproj -property:Configuration=Release
@@ -374,7 +386,7 @@ jobs:
374386 run : |
375387 mkdir build_dbg
376388 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 ..
378390 msbuild astcencoder.sln -property:Configuration=Debug
379391 shell : cmd
380392
@@ -402,6 +414,10 @@ jobs:
402414 python ./Test/astc_test_image.py --test-set Small
403415 shell : cmd
404416
417+ - name : Run unit tests
418+ run : ctest
419+ working-directory : build_rel
420+
405421 build-windows-arm64-clangcl :
406422 name : Windows arm64 ClangCL
407423 runs-on : windows-2022
0 commit comments