diff --git a/.github/workflows/cmake-build-and-test.yml b/.github/workflows/cmake-build-and-test.yml index 478d0828..4b036503 100644 --- a/.github/workflows/cmake-build-and-test.yml +++ b/.github/workflows/cmake-build-and-test.yml @@ -22,6 +22,13 @@ on: jobs: cmake-build-and-test: + strategy: + matrix: + options: [ + { extra_cmake_args: '', extra_targets: 'test' }, + { extra_cmake_args: ' -DAU_ENABLE_TESTING=FALSE', extra_targets: '' }, + { extra_cmake_args: ' -DAU_EXCLUDE_GTEST_DEPENDENCY=TRUE', extra_targets: '' } + ] runs-on: ubuntu-latest steps: @@ -31,6 +38,6 @@ jobs: with: cmake-version: '3.29.x' - name: Generate - run: cmake -S . -B cmake/build -DCMAKE_VERIFY_INTERFACE_HEADER_SETS=TRUE + run: cmake -S . -B cmake/build -DCMAKE_VERIFY_INTERFACE_HEADER_SETS=TRUE ${{ matrix.options.extra_cmake_args }} - name: Build and test - run: cmake --build cmake/build --target all all_verify_interface_header_sets test + run: cmake --build cmake/build --target all all_verify_interface_header_sets ${{ matrix.options.extra_targets }}