[eric] ci: portable timeout for the CLI exercise (macOS runners lack coreutils timeout)

This commit is contained in:
ciregenz
2026-07-06 15:14:39 -07:00
parent 4d9687ec46
commit ece22d98cb
+2 -1
View File
@@ -75,7 +75,8 @@ jobs:
# a real invocation exercises the JIT/network paths; a clean auth
# error (not a SIGILL/crash) is the pass condition
set +e
ANTHROPIC_API_KEY=sk-ant-invalid timeout 90 "$CLI" -p "hi" --model claude-haiku-4-5-20251001 > /tmp/cli-run.out 2>&1
# macOS has no `timeout`; perl alarm is the portable equivalent
ANTHROPIC_API_KEY=sk-ant-invalid perl -e 'alarm 90; exec @ARGV' -- "$CLI" -p "hi" --model claude-haiku-4-5-20251001 > /tmp/cli-run.out 2>&1
CODE=$?
set -e
cat /tmp/cli-run.out