Skip to content

Commit b044674

Browse files
zhiqipanclaude
andcommitted
Simplify CI: let SPM resolve SwiftSyntax version naturally
Remove sed-based version pinning that caused linker errors on Swift 6.2. Swift 6.2 ships with prebuilt SwiftSyntax 602.0.0, and forcing an exact version caused duplicate symbol errors during linking. Each Swift version naturally resolves to compatible SwiftSyntax: - Swift 6.0.x → SwiftSyntax 600.x - Swift 6.1.x → SwiftSyntax 601.x - Swift 6.2.x → SwiftSyntax 602.x Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1aa9c28 commit b044674

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,15 @@ jobs:
6363
name: Test BridgeJS against Swift versions
6464
strategy:
6565
matrix:
66-
include:
67-
- swift-image: "swift:6.0.3"
68-
swift-syntax-version: "600.0.1"
69-
- swift-image: "swift:6.1.2"
70-
swift-syntax-version: "601.0.1"
71-
- swift-image: "swift:6.2"
72-
swift-syntax-version: "602.0.0"
66+
swift-image:
67+
- "swift:6.0.3" # Tests with SwiftSyntax 600.x (non-SwiftSyntax602 code path)
68+
- "swift:6.1.2" # Tests with SwiftSyntax 601.x (non-SwiftSyntax602 code path)
69+
- "swift:6.2" # Tests with SwiftSyntax 602.x (SwiftSyntax602 code path)
7370
runs-on: ubuntu-latest
7471
container:
7572
image: ${{ matrix.swift-image }}
7673
steps:
7774
- uses: actions/checkout@v6
78-
- name: Pin swift-syntax to exact version
79-
working-directory: Plugins/BridgeJS
80-
run: |
81-
# Use exact version constraint to pin swift-syntax
82-
sed -i 's/from: "600.0.1"/exact: "${{ matrix.swift-syntax-version }}"/' Package.swift
83-
cat Package.swift | grep swift-syntax | head -1
8475
- name: Setup Node.js
8576
uses: actions/setup-node@v4
8677
with:

0 commit comments

Comments
 (0)