mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-17 18:25:42 +02:00
[eric] ci: portable timeout for the CLI exercise (macOS runners lack coreutils timeout)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user