use gtail for followinf the log file
Some checks failed
Solaris Multi-Build / build (i386, 172.16.11.20, 2.6) (push) Failing after 10m8s

This commit is contained in:
Mario Fetka 2025-09-07 09:41:27 +02:00
parent 0bd104cae5
commit 759641d58c

View File

@ -73,17 +73,17 @@ jobs:
fi fi
echo "=== Building $pkg on Solaris ${{ matrix.osver }} ${{ matrix.arch }} ===" echo "=== Building $pkg on Solaris ${{ matrix.osver }} ${{ matrix.arch }} ==="
LOGFILE=$(bash build.sh all 2>&1 | tee /tmp/build-$pkg.log | ggrep -oE '[^ ]+\.log' | tail -n1) LOGFILE=$(bash build.sh all 2>&1 | tee /tmp/build-$pkg.log | ggrep -oE '[^ ]+\.log' | gtail -n1)
if [ -z "$LOGFILE" ]; then if [ -n "$LOGFILE" ] && [ -f "$LOGFILE" ]; then
echo "ERROR: Could not detect logfile for $pkg" echo "Tailing logfile: $LOGFILE"
gtail -f "$LOGFILE" &
TAIL_PID=$!
else
echo "ERROR: No logfile detected for $pkg"
exit 1 exit 1
fi fi
echo "Tailing logfile: $LOGFILE"
tail -f "$LOGFILE" &
TAIL_PID=$!
wait -n wait -n
EXIT_CODE=$? EXIT_CODE=$?
kill $TAIL_PID || true kill $TAIL_PID || true