mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
fix(ci): reset SwiftPM state between build retries
This commit is contained in:
@@ -1784,7 +1784,13 @@ jobs:
|
||||
if swift build --package-path apps/macos --product OpenClaw --configuration release; then
|
||||
exit 0
|
||||
fi
|
||||
if [[ "$attempt" -eq 3 ]]; then
|
||||
break
|
||||
fi
|
||||
echo "swift build failed (attempt $attempt/3). Retrying…"
|
||||
# SwiftPM can invalidate a restored binary artifact while planning.
|
||||
# Reset so the next attempt downloads a complete dependency graph.
|
||||
swift package --package-path apps/macos reset
|
||||
sleep $((attempt * 20))
|
||||
done
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user