Skip to content

Commit 37a519a

Browse files
committed
GHA doesn't have /dev/tty, let's try this
1 parent 59e343b commit 37a519a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
#!/bin/sh -e
7171
printf '%s\n' "$0 $*" |
7272
flock /run/lock/wrapper1.fbd136bd-9b1b-448d-84a9-e18be53ae63c.lock \
73-
tee -a /var/log/wrapper1.log /dev/tty >/dev/null
73+
tee -a -- /var/log/wrapper1.log ~/ci-stdout >/dev/null
7474
exec "$0.orig" "$@"
7575
EOF
7676
@@ -85,6 +85,7 @@ jobs:
8585
8686
chmod +x /usr/local/bin/wrap1 /usr/local/bin/wrapper1
8787
mkdir /run/lock/wrapper1.fbd136bd-9b1b-448d-84a9-e18be53ae63c.lock
88+
ln -s -- "/proc/$$/fd/1" ~/ci-stdout
8889
8990
find /usr/lib/gcc \( -name cc1 -o -name cc1plus \) \
9091
-print -exec /usr/local/bin/wrap1 {} \;

0 commit comments

Comments
 (0)