Skip to content

Commit 09084da

Browse files
author
Matthias Koeppe
committed
.github/workflows/docker.yml: Add documentation
1 parent f64f98c commit 09084da

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,15 @@ jobs:
229229
df -h
230230
if: inputs.free_disk_space
231231
- name: Configure and build Sage distribution within a Docker container
232+
# The first command below is a self-destruct sequence,
233+
# which preempts the GitHub Actions 6-hour job cancellation.
234+
#
235+
# Using "docker exec", we enter the temporary containers used by
236+
# "docker build" and kill the "make" processes of the Sage distribution.
237+
#
238+
# The arcane "find" command is a replacement for "pkill make",
239+
# which we use because pkill is not installed in the "minimal" package
240+
# configuration on many platforms.
232241
run: |
233242
(sleep ${{ inputs.timeout }}; for id in $(docker ps -q); do docker exec $id find /proc -maxdepth 2 -name cmdline -exec bash -c "grep -l [m][a][k][e] {} | cut -d/ -f3 | xargs --no-run-if-empty kill" \;; done) &
234243
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::|;"

0 commit comments

Comments
 (0)