Add timeout to ci tests.

Windows can hang due to assert failures in CI.  Add a timeout to get
some information of what is happening.
This commit is contained in:
Matthew Parkinson
2021-12-01 20:09:48 +00:00
committed by Matthew Parkinson
parent 9b548ed3a2
commit 894b0314c9

View File

@@ -99,7 +99,7 @@ jobs:
- name: Test
if: ${{ matrix.build-only != 'yes' }}
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure -j 4 -C ${{ matrix.build-type }}
run: ctest --output-on-failure -j 4 -C ${{ matrix.build-type }} --timeout 400
- name: Selfhost
if: ${{ matrix.self-host }}
working-directory: ${{github.workspace}}/build
@@ -182,7 +182,7 @@ jobs:
# QEMU)
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure -E '(perf-.*)|(.*-malloc$)'
run: ctest --output-on-failure -E '(perf-.*)|(.*-malloc$)' --timeout 400
timeout-minutes: 30
windows:
@@ -222,7 +222,7 @@ jobs:
# Run the tests.
- name: Test
working-directory: ${{ github.workspace }}/build
run: ctest -j 2 --interactive-debug-mode 0 --output-on-failure -C ${{ matrix.build-type }}
run: ctest -j 2 --interactive-debug-mode 0 --output-on-failure -C ${{ matrix.build-type }} --timeout 400
timeout-minutes: 20