From 747973a2d6bc7a04c3bddfe4599968ee257d4c7f Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 5 Jun 2022 01:43:50 +0200 Subject: [PATCH] fix(ci): cmake tests are not run on GHA --- .github/workflows/test.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b28604d..626945f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,11 +38,17 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: CMake Configure - run: cmake -B out -DCMAKE_BUILD_TYPE=Release ${{ runner.os == 'macOS' && '-DBASE64_WITH_AVX2=OFF' || '' }} + run: > + cmake + -B out + -Werror=dev + -DBASE64_BUILD_TESTS=ON + ${{ runner.os != 'Windows' && '-DCMAKE_BUILD_TYPE=Release' || '' }} + ${{ runner.os == 'macOS' && '-DBASE64_WITH_AVX2=OFF' || '' }} - name: CMake Build run: cmake --build out --config Release --verbose - name: CTest - run: ctest --test-dir out -VV --build-config Release + run: ctest --no-tests=error --test-dir out -VV --build-config Release alpine-makefile-test: name: makefile-alpine-amd64-gcc @@ -72,9 +78,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: CMake Configure - run: cmake -B out -DCMAKE_BUILD_TYPE=Release ${{ runner.os == 'macOS' && '-DBASE64_WITH_AVX2=OFF' || '' }} + run: cmake -B out -Werror=dev -DBASE64_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Release - name: CMake Build run: cmake --build out --config Release --verbose - name: CTest - run: ctest -VV --build-config Release + run: ctest --no-tests=error -VV --build-config Release working-directory: ./out