Skip to content

Commit fb8588d

Browse files
committed
Run tests on Swift 6.0 again
1 parent 33f7e79 commit fb8588d

File tree

3 files changed

+13
-25
lines changed

3 files changed

+13
-25
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
ruby-version: '3.3.5'
1919
bundler-cache: true
2020
- name: Select Xcode Version
21-
run: sudo xcode-select --switch /Applications/Xcode_16.3.app/Contents/Developer
21+
run: sudo xcode-select --switch /Applications/Xcode_16.app/Contents/Developer
2222
- name: Download visionOS
2323
run: |
2424
sudo xcodebuild -runFirstLaunch
2525
sudo xcrun simctl list
2626
sudo xcodebuild -downloadPlatform visionOS
2727
sudo xcodebuild -runFirstLaunch
2828
- name: Lint Podspec
29-
run: bundle exec pod lib lint --verbose --fail-fast --swift-version=6.1 --allow-warnings # Cocoapods v1.6 now warns about potential naming colisions. We can fix this in the next breaking change.
29+
run: bundle exec pod lib lint --verbose --fail-fast --swift-version=6.0 --allow-warnings # Cocoapods v1.6 now warns about potential naming colisions. We can fix this in the next breaking change.
3030
spm-16:
3131
name: Build Xcode 16
3232
runs-on: macOS-15
@@ -47,7 +47,7 @@ jobs:
4747
ruby-version: '3.3.5'
4848
bundler-cache: true
4949
- name: Select Xcode Version
50-
run: sudo xcode-select --switch /Applications/Xcode_16.3.app/Contents/Developer
50+
run: sudo xcode-select --switch /Applications/Xcode_16.app/Contents/Developer
5151
- name: Download visionOS
5252
if: matrix.platforms == 'visionOS_2'
5353
run: |
@@ -62,20 +62,6 @@ jobs:
6262
- name: Upload Coverage Reports
6363
if: success()
6464
uses: codecov/codecov-action@v4
65-
spm-16-swift-test:
66-
name: Swift Build and Test Xcode 16
67-
runs-on: macOS-15
68-
steps:
69-
- name: Checkout Repo
70-
uses: actions/checkout@v4
71-
- uses: ruby/setup-ruby@v1
72-
with:
73-
ruby-version: '3.3.5'
74-
bundler-cache: true
75-
- name: Select Xcode Version
76-
run: sudo xcode-select --switch /Applications/Xcode_16.3.app/Contents/Developer
77-
- name: Build and Test Framework
78-
run: xcrun swift test -c release -Xswiftc -enable-testing
7965
spm-16-swift:
8066
name: Swift Build Xcode 16
8167
runs-on: macOS-15
@@ -88,12 +74,12 @@ jobs:
8874
bundler-cache: true
8975
- name: Select Xcode Version
9076
run: sudo xcode-select --switch /Applications/Xcode_16.app/Contents/Developer
91-
- name: Build Framework
92-
run: xcrun swift build -c release
77+
- name: Build and Test Framework
78+
run: xcrun swift test -c release -Xswiftc -enable-testing
9379
linux:
9480
name: Build and Test on Linux
9581
runs-on: ubuntu-latest
96-
container: swift:6.1
82+
container: swift:6.0.3
9783
steps:
9884
- name: Checkout Repo
9985
uses: actions/checkout@v4

Scripts/build.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ enum Platform: String, CaseIterable, CustomStringConvertible {
3131
var destination: String {
3232
switch self {
3333
case .iOS_18:
34-
"platform=iOS Simulator,OS=18.3.1,name=iPad (10th generation)"
34+
"platform=iOS Simulator,OS=18.0,name=iPad (10th generation)"
3535
case .tvOS_18:
36-
"platform=tvOS Simulator,OS=18.4,name=Apple TV"
36+
"platform=tvOS Simulator,OS=18.0,name=Apple TV"
37+
case .tvOS_18:
38+
"platform=tvOS Simulator,OS=18,name=Apple TV"
3739

3840
case .macOS_15,
3941
.macCatalyst_15:
@@ -42,7 +44,7 @@ enum Platform: String, CaseIterable, CustomStringConvertible {
4244
case .watchOS_11:
4345
"OS=11.0,name=Apple Watch Series 10 (46mm)"
4446
case .visionOS_2:
45-
"OS=2.3,name=Apple Vision Pro"
47+
"OS=2.0,name=Apple Vision Pro"
4648
}
4749
}
4850

@@ -56,7 +58,7 @@ enum Platform: String, CaseIterable, CustomStringConvertible {
5658

5759
case .macOS_15,
5860
.macCatalyst_15:
59-
"macosx15.4"
61+
"macosx15.0"
6062

6163
case .watchOS_11:
6264
"watchsimulator"

Tests/CacheAdvanceTests/CacheHeaderHandleTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct CacheHeaderHandleTests {
2525
// MARK: Initializatino
2626

2727
init() throws {
28-
Data().write(to: testFileLocation)
28+
try Data().write(to: testFileLocation)
2929
}
3030

3131
// MARK: Behavior Tests

0 commit comments

Comments
 (0)