Skip to content

Fix CI Swift and macOS SDK compatibility - #30

Merged
WendellXY merged 1 commit into
mainfrom
fix/pin-swift-compatible-xcode
Oct 8, 2026
Merged

WendellXY merged 1 commit into
mainfrom
fix/pin-swift-compatible-xcode

Conversation

@WendellXY

@WendellXY WendellXY commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Pin macOS jobs to macos-15, which provides compatible Xcode versions for all three compiler versions.
  • Select Xcode 16.0 for Swift 6.0.0, Xcode 16.3 for Swift 6.1.0, and Xcode 26.0.1 for Swift 6.2.0 before installing Swift.
  • Keep all six macOS/Linux build-and-test combinations and the existing exact Swift versions. Add compiler and SDK diagnostics.

Why

The latest Swift run fails for macOS Swift 6.0/6.1 because macos-latest supplies a newer Xcode SDK. Linux and macOS Swift 6.2 pass. Pinning both the runner and SDK prevents the default Xcode upgrade from mixing incompatible compiler/SDK generations.

Availability and pairing checked against GitHub's macOS 15 runner inventory and Apple's Xcode requirements. This avoids macOS 14, which is scheduled to become unsupported on November 2, 2026.

Validation

  • Passed YAML parsing and matrix expansion checks: three macOS jobs with explicit SDK pairings and three unchanged Linux jobs.
  • Local build/test unavailable in the cloud workspace because Swift and macOS SDKs are not installed.
  • GitHub-hosted Swift workflow #151 passed for commit af0d77580fd8b66cc87b8b22dcf758f0fb39c6de: all six macOS/Linux build-and-test jobs are green.
  • Opened as a draft for maintainer review; GitHub reports it was subsequently merged on October 8, 2026.

@WendellXY WendellXY self-assigned this Oct 8, 2026
@WendellXY
WendellXY marked this pull request as ready for review October 8, 2026 09:28
Copilot AI balanced review requested due to automatic review settings October 8, 2026 09:28
@WendellXY
WendellXY merged commit 304f8a8 into main Oct 8, 2026
8 checks passed
@WendellXY
WendellXY deleted the fix/pin-swift-compatible-xcode branch October 8, 2026 09:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

All matrix combinations are correctly configured and passed the referenced workflow run.

0 open findings

What changed in this PR

Pins macOS CI to compatible runner/Xcode combinations while preserving the six-job Swift matrix.

Changes:

  • Uses macos-15 with version-specific Xcode SDKs.
  • Adds Swift and SDK diagnostics.
  • Retains all macOS/Linux builds and tests; validated run passed.
File Description
.github/​workflows/​ci.yml Defines compatible macOS SDK/compiler pairings and diagnostics.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants