File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 78
78
free_disk_space :
79
79
default : false
80
80
type : boolean
81
+ timeout :
82
+ description : ' Elapsed time (seconds) at which to kill the build'
83
+ default : 20000
84
+ type : number
81
85
#
82
86
# Publishing to GitHub Packages
83
87
#
@@ -224,6 +228,7 @@ jobs:
224
228
if : inputs.free_disk_space
225
229
- name : Configure and build Sage distribution within a Docker container
226
230
run : |
231
+ (sleep ${{ inputs.timeout }}; for id in $(docker ps -q); do docker exec $id pkill make; done) &
227
232
set -o pipefail; EXTRA_DOCKER_BUILD_ARGS="--build-arg NUMPROC=4 --build-arg USE_MAKEFLAGS=\"-k V=0 SAGE_NUM_THREADS=3\"" tox -e $TOX_ENV -- $TARGETS 2>&1 | sed "/^configure: notice:/s|^|::warning file=artifacts/$LOGS_ARTIFACT_NAME/config.log::|;/^configure: warning:/s|^|::warning file=artifacts/$LOGS_ARTIFACT_NAME/config.log::|;/^configure: error:/s|^|::error file=artifacts/$LOGS_ARTIFACT_NAME/config.log::|;"
228
233
- name : Copy logs from the Docker image or build container
229
234
run : |
You can’t perform that action at this time.
0 commit comments