From b4e5adcc4009acf3c42113487e0c2c580a3fbceb Mon Sep 17 00:00:00 2001 From: saharNooby Date: Tue, 18 Apr 2023 20:38:24 +0400 Subject: [PATCH] Add ctest run step --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07807e2..ccb994a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,6 +42,12 @@ jobs: cmake -DBUILD_SHARED_LIBS=ON .. cmake --build . --config Release + - name: Test + id: cmake_test + run: | + cd build + ctest --verbose + - name: Get commit hash id: commit if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} @@ -92,6 +98,12 @@ jobs: cmake -DBUILD_SHARED_LIBS=ON -DRWKV_AVX2=OFF .. cmake --build . --config Release + - name: Test + id: cmake_test + run: | + cd build + ctest --verbose + - name: Get commit hash id: commit if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} @@ -146,6 +158,12 @@ jobs: cmake .. -DBUILD_SHARED_LIBS=ON ${{ matrix.defines }} cmake --build . --config Release + - name: Test + id: cmake_test + run: | + cd build + ctest --verbose + - name: Check AVX512F support id: check_avx512f if: ${{ matrix.build == 'avx512' }}