Skip to content

Commit 8f3204a

Browse files
committed
Bump minimum Swift version to 5.10
1 parent ad48ff5 commit 8f3204a

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/run_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
strategy:
2424
matrix:
2525
os: [macos-latest, ubuntu-latest]
26-
swift-version: ["5.7.0"]
26+
swift-version: ["5.10.0"]
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- uses: actions/checkout@v3
3030
- name: Install Swift ${{ matrix.swift-version }}
3131
if: ${{ runner.os != 'Windows' }}
32-
uses: swift-actions/setup-swift@v1
32+
uses: swift-actions/setup-swift@v2
3333
with:
3434
swift-version: ${{ matrix.swift-version }}
3535
- name: Test

Package.swift

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 5.7
1+
// swift-tools-version: 5.10
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -25,12 +25,18 @@ let package = Package(
2525
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2626
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2727
.target(
28-
name: "Semaphore",
29-
swiftSettings: [
30-
// .unsafeFlags(["-Xfrontend", "-warn-concurrency", "-strict-concurrency=complete"]),
31-
]),
28+
name: "Semaphore"),
3229
.testTarget(
3330
name: "SemaphoreTests",
3431
dependencies: ["Semaphore"]),
3532
]
3633
)
34+
35+
for target in package.targets {
36+
var settings = target.swiftSettings ?? []
37+
settings.append(contentsOf: [
38+
// <https://github.com/apple/swift-evolution/blob/main/proposals/0337-support-incremental-migration-to-concurrency-checking.md>
39+
.enableExperimentalFeature("StrictConcurrency"),
40+
])
41+
target.swiftSettings = settings
42+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**A Synchronization Primitive for Swift Concurrency**
44

5-
**Requirements**: iOS 13.0+ / macOS 10.15+ / tvOS 13.0+ / watchOS 6.0+ • Swift 5.7+ / Xcode 14+
5+
**Requirements**: iOS 13.0+ / macOS 10.15+ / tvOS 13.0+ / watchOS 6.0+ • Swift 5.10+ / Xcode 15.3+
66

77
📖 **[Documentation](https://swiftpackageindex.com/groue/Semaphore/documentation)**
88

0 commit comments

Comments
 (0)