Skip to content

Commit

Permalink
Bump minimum Swift version to 5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Jul 28, 2024
1 parent ad48ff5 commit f2664a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
swift-version: ["5.7.0"]
swift-version: ["5.10.0"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
16 changes: 11 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.7
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -25,12 +25,18 @@ let package = Package(
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "Semaphore",
swiftSettings: [
// .unsafeFlags(["-Xfrontend", "-warn-concurrency", "-strict-concurrency=complete"]),
]),
name: "Semaphore"),
.testTarget(
name: "SemaphoreTests",
dependencies: ["Semaphore"]),
]
)

for target in package.targets {
var settings = target.swiftSettings ?? []
settings.append(contentsOf: [
// <https://github.com/apple/swift-evolution/blob/main/proposals/0337-support-incremental-migration-to-concurrency-checking.md>
.enableExperimentalFeature("StrictConcurrency"),
])
target.swiftSettings = settings
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**A Synchronization Primitive for Swift Concurrency**

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

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

Expand Down

0 comments on commit f2664a0

Please sign in to comment.