Try to convince github actions to build all jobs instead of stopping on first fail

This commit is contained in:
Krylov Yaroslav 2020-12-12 02:47:44 +03:00
parent 6b60df69f6
commit 4be0b4083c
No known key found for this signature in database
GPG Key ID: 4C127DE932933076
3 changed files with 12 additions and 0 deletions

View File

@ -34,6 +34,7 @@ jobs:
run: |
${{matrix.install}}
cmake -E make_directory ${{runner.workspace}}/build
if: always()
- name: Configure
working-directory: ${{runner.workspace}}/build
@ -44,11 +45,14 @@ jobs:
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{matrix.fuzz}} \
-DCMAKE_CXX_STANDARD=${{matrix.std}} -DFMT_DOC=OFF \
-DFMT_PEDANTIC=ON -DFMT_WERROR=ON $GITHUB_WORKSPACE
if: always()
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{matrix.build_type}}
if: always()
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build_type}}
if: always()

View File

@ -14,17 +14,21 @@ jobs:
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
if: always()
- name: Configure
working-directory: ${{runner.workspace}}/build
run: |
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DFMT_DOC=OFF -DFMT_PEDANTIC=ON -DFMT_WERROR=ON $GITHUB_WORKSPACE
if: always()
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{matrix.build_type}}
if: always()
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build_type}}
if: always()

View File

@ -30,6 +30,7 @@ jobs:
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
if: always()
- name: Configure
# Use a bash shell for $GITHUB_WORKSPACE.
@ -40,11 +41,14 @@ jobs:
-A ${{matrix.platform}} \
-DCMAKE_CXX_STANDARD=${{matrix.standard}} \
$GITHUB_WORKSPACE
if: always()
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{matrix.build_type}}
if: always()
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -C ${{matrix.build_type}}
if: always()