fix(ci): add retry logic for platform binary builds

- Use nick-fields/retry@v3 for Build binary step
- 5 minute timeout per attempt
- Max 5 attempts with 10s wait between retries
- Prevents infinite hang on Bun cross-compile network issues
This commit is contained in:
justsisyphus 2026-02-01 15:45:26 +09:00
parent f146aeff0f
commit e8cdab8871

View File

@ -84,7 +84,12 @@ jobs:
- name: Build binary - name: Build binary
if: steps.check.outputs.skip != 'true' if: steps.check.outputs.skip != 'true'
run: | uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
retry_wait_seconds: 10
command: |
PLATFORM="${{ matrix.platform }}" PLATFORM="${{ matrix.platform }}"
case "$PLATFORM" in case "$PLATFORM" in
darwin-arm64) TARGET="bun-darwin-arm64" ;; darwin-arm64) TARGET="bun-darwin-arm64" ;;