Skip to content

Commit 50d1eaf

Browse files
author
Matthias Koeppe
committed
.github/workflows/macos.yml: Add input 'timeout'
1 parent c885e54 commit 50d1eaf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/macos.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ on:
4646
free_disk_space:
4747
default: false
4848
type: boolean
49+
timeout:
50+
description: 'Elapsed time (seconds) at which to kill the build'
51+
default: 20000
52+
type: number
4953
#
5054
# For use in upstream CIs.
5155
#
@@ -134,6 +138,7 @@ jobs:
134138
*) export TARGETS_PRE="${{ inputs.targets_pre }}" TARGETS="${{ inputs.targets }} TARGETS_OPTIONAL="${{ inputs.targets_optional }}
135139
;;
136140
esac
141+
(sleep ${{ inputs.timeout }}; pkill make) &
137142
MAKE="make -j12" tox -e $TOX_ENV -- SAGE_NUM_THREADS=6 $TARGETS
138143
- name: Prepare logs artifact
139144
run: |

0 commit comments

Comments
 (0)