perf: skip go rebuild if sources unchanged, use rsync for ISO download

- audit binary is only rebuilt when .go files are newer than the binary
- rsync replaces scp for ISO download (delta transfer on repeat builds)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 16:21:14 +03:00
parent bb4ceab452
commit 413f188278
2 changed files with 23 additions and 10 deletions

View File

@@ -56,7 +56,8 @@ echo ""
echo "=== downloading ISO ==="
LOCAL_ISO_DIR="${REPO_ROOT}/iso/out"
mkdir -p "${LOCAL_ISO_DIR}"
scp -o StrictHostKeyChecking=no \
rsync -az --progress \
-e "ssh -o StrictHostKeyChecking=no" \
"root@${BUILDER_HOST}:/root/bee/dist/*.iso" \
"${LOCAL_ISO_DIR}/"
echo ""