Skip to content

Commit 7997b7a

Browse files
committed
ci: wrap build.sh in script(1) to provide a TTY in CI
build.sh runs 'docker run -it'; the -t fails in CI with 'the input device is not a TTY'. Wrap each call in script(1) for a pseudo-terminal instead of patching upstream tooling.
1 parent 1133343 commit 7997b7a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/determinism-x86.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ jobs:
4848
# build.sh blocks unless submodules are acknowledged.
4949
touch .i-understand-git-submodules.txt
5050
chmod +x docker-build-v2/build.sh
51-
./docker-build-v2/build.sh --configure linux \
52-
-DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DAI_TYPES=NONE
53-
./docker-build-v2/build.sh --compile linux
51+
# build.sh runs `docker run -it`; the -t needs a TTY which CI has
52+
# not got ("the input device is not a TTY"). Wrap each call in
53+
# `script`, which allocates a pseudo-terminal, rather than patch
54+
# the upstream tooling.
55+
script -q -e -c "./docker-build-v2/build.sh --configure linux -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DAI_TYPES=NONE" /dev/null
56+
script -q -e -c "./docker-build-v2/build.sh --compile linux" /dev/null
5457
echo "--- build outputs ---"
5558
ls -la build-linux/ | head
5659
file build-linux/spring-headless || (echo "::error::spring-headless not built" && exit 1)

0 commit comments

Comments
 (0)