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:
committed by
Matthew Parkinson
parent
9b548ed3a2
commit
894b0314c9
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user