Skip to content

Commit

Permalink
[CI] Only check subproject / discovery for Release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
wavefunction91 committed Apr 21, 2022
1 parent e86b578 commit 56788ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ jobs:
run: cmake --build ${{runner.workspace}}/build --target install

- name: CMake Subproject Configure
if: ${{ matrix.build_type == 'Release' }}
shell: bash
run: cmake -H$GITHUB_WORKSPACE/tests/cmake/subproject
-B${{runner.workspace}}/cmake_subproject_build
Expand All @@ -102,17 +103,20 @@ jobs:
-DCMAKE_TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/${GH_ACTIONS_TOOLCHAIN}

- name: CMake Subproject Build
if: ${{ matrix.build_type == 'Release' }}
shell: bash
run: cmake --build ${{runner.workspace}}/cmake_subproject_build -j2


- name: CMake Discovery Configure
if: ${{ matrix.build_type == 'Release' }}
shell: bash
run: cmake -H$GITHUB_WORKSPACE/tests/cmake/discovery
-B${{runner.workspace}}/cmake_discovery_build
-DCMAKE_PREFIX_PATH=${{runner.workspace}}/install
-DCMAKE_TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/${GH_ACTIONS_TOOLCHAIN}

- name: CMake Discovery Build
if: ${{ matrix.build_type == 'Release' }}
shell: bash
run: cmake --build ${{runner.workspace}}/cmake_discovery_build -j2

0 comments on commit 56788ae

Please sign in to comment.