mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-08-12 18:13:37 +00:00
fix: tarball workflow failures (root ownership, swapfile, hermes TTY) (#2240)
- Use sudo mv + chown for tarball in release step (root-owned from capture) - Skip swapfile creation if /swapfile already exists (GitHub Actions runners) - Tolerate hermes setup wizard failure when /dev/tty unavailable in CI Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8072c084c2
commit
ba9690ea23
2 changed files with 6 additions and 5 deletions
7
.github/workflows/agent-tarballs.yml
vendored
7
.github/workflows/agent-tarballs.yml
vendored
|
|
@ -113,7 +113,7 @@ jobs:
|
|||
fi
|
||||
|
||||
echo "==> Running: ${cmd}"
|
||||
sudo HOME=/root bash -c "${cmd}"
|
||||
sudo HOME=/root bash -c "${cmd}" < /dev/null
|
||||
i=$((i + 1))
|
||||
done
|
||||
|
||||
|
|
@ -134,8 +134,9 @@ jobs:
|
|||
DATE=$(date -u +%Y%m%d)
|
||||
TARBALL="spawn-agent-${AGENT_NAME}-x86_64-${DATE}.tar.gz"
|
||||
|
||||
# Move tarball to expected name
|
||||
mv "/tmp/spawn-agent-${AGENT_NAME}.tar.gz" "${TARBALL}"
|
||||
# Move tarball to expected name (tarball is owned by root from sudo capture)
|
||||
sudo mv "/tmp/spawn-agent-${AGENT_NAME}.tar.gz" "${TARBALL}"
|
||||
sudo chown "$(id -u):$(id -g)" "${TARBALL}"
|
||||
|
||||
# Delete existing release if present (rolling release)
|
||||
gh release delete "${TAG}" --yes 2>/dev/null || true
|
||||
|
|
|
|||
|
|
@ -32,14 +32,14 @@
|
|||
"zeroclaw": {
|
||||
"tier": "minimal",
|
||||
"install": [
|
||||
"fallocate -l 4G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile",
|
||||
"if [ ! -f /swapfile ]; then fallocate -l 4G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile; fi",
|
||||
"curl -LsSf https://raw.githubusercontent.com/zeroclaw-labs/zeroclaw/a117be64fdaa31779204beadf2942c8aef57d0e5/scripts/bootstrap.sh | bash -s -- --install-rust --install-system-deps --prefer-prebuilt"
|
||||
]
|
||||
},
|
||||
"hermes": {
|
||||
"tier": "minimal",
|
||||
"install": [
|
||||
"curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash"
|
||||
"curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash || [ -f ~/.local/bin/hermes ]"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue