Skip to content

Commit 5ad29ca

Browse files
committed
ci: fix Testing framework compatibility - require Swift 6.0+
The Swift Testing framework (@test, #expect) requires Swift 6.0+ and is not available in Swift 5.9/5.10. Remove those CI jobs. Changes: - Remove macos-swift59 jobs (Swift 5.9 + Xcode 15.2) - Remove linux-swift510 job (Swift 5.10 container) - Add macos-swift60 jobs (Swift 6.0 + Xcode 16.0) - Add linux-swift60 job (Swift 6.0 container) - Update ci-success dependencies to match new jobs - Add explanatory comment about Swift Testing requirement This resolves CI failures where Swift 5.x versions cannot compile tests that use the modern Testing framework.
1 parent b00e098 commit 5ad29ca

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
jobs:
17-
macos-swift59:
18-
name: macOS (Swift 5.9)
19-
runs-on: macos-14
17+
# Note: Swift Testing framework requires Swift 6.0+
18+
# Tests use @Test and #expect which are not available in Swift 5.x
19+
macos-swift60:
20+
name: macOS (Swift 6.0)
21+
runs-on: macos-15
2022
strategy:
2123
matrix:
22-
xcode: ['15.2']
24+
xcode: ['16.0']
2325
config: ['debug', 'release']
2426
steps:
2527
- uses: actions/checkout@v5
@@ -74,10 +76,10 @@ jobs:
7476
- name: Run tests
7577
run: swift test -c ${{ matrix.config }}
7678

77-
linux-swift510:
78-
name: Ubuntu (Swift 5.10)
79+
linux-swift60:
80+
name: Ubuntu (Swift 6.0)
7981
runs-on: ubuntu-latest
80-
container: swift:5.10
82+
container: swift:6.0
8183
steps:
8284
- uses: actions/checkout@v5
8385

0 commit comments

Comments
 (0)