Skip to content

Commit 6defcd4

Browse files
fix(ci): make sdk_swift resolve non-blocking on release PRs
When a release PR bumps PROJECT_VERSION (e.g. to 0.19.8), Package.swift's binary targets point at release-asset URLs for that not-yet-existing version, so `swift package resolve` 404s. This blocks release PRs from ever merging — a chicken-and-egg problem. Make resolve non-blocking (consistent with swift build below it) so the job becomes a smoke check rather than a hard gate. The actual binary validation happens in release.yml once the tag is pushed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1df0ffc commit 6defcd4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/pr-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,11 @@ jobs:
300300
with:
301301
platform: ios
302302
- name: Resolve Swift package
303-
run: swift package resolve
303+
# Non-blocking: Package.swift points to binaries at the bumped version,
304+
# which may not exist yet on a release PR (chicken-and-egg). The
305+
# release.yml workflow will produce them. Swift build below is similarly
306+
# gated.
307+
run: swift package resolve || echo "::warning::swift package resolve failed — binaries at v${PROJECT_VERSION} may not exist yet (ok on release PRs)"
304308
- name: Build Swift package (smoke check)
305309
# Builds with whatever Binaries/ already contains (or fetches remote per Package.swift).
306310
# We don't fail the SDK job if natives aren't present yet — that's a follow-up.

0 commit comments

Comments
 (0)