(actions) split building from running tests

This commit is contained in:
Matthijs van der Burgh 2023-02-02 12:27:23 +01:00
parent 8ab17ada47
commit 58b15fecb3

View File

@ -37,13 +37,17 @@ jobs:
run: |
cmake ${{ env.CMAKE_GENERATOR }} -S "${{ github.workspace }}" -B build -DYAML_BUILD_SHARED_LIBS=${{ env.YAML_BUILD_SHARED_LIBS }}
cd build && cmake --build . --parallel ${{ steps.cpu-cores.outputs.count }}
- name: Test
- name: Build Tests
shell: bash
run: |
cmake ${{ env.CMAKE_GENERATOR }} -S "${{ github.workspace }}" -B build -DYAML_BUILD_SHARED_LIBS=${{ env.YAML_BUILD_SHARED_LIBS }} -DYAML_CPP_BUILD_TESTS=${{ env.YAML_CPP_BUILD_TESTS }}
cd build && cmake --build . --parallel ${{ steps.cpu-cores.outputs.count }}
ctest --output-on-failure --verbose
- name: Run Tests
shell: bash
run: |
cd build && ctest --output-on-failure --verbose
bazel-build:
strategy: