Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): cmake tests are not run on GHA #84

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
mayeut marked this conversation as resolved.
Show resolved Hide resolved
- 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