Drop Swift 5.9 (#270)

Motivation:

Swift 5.9 is no longer supported, we should bump the tools version and
remove it from our CI.

Modifications:

* Bump the Swift tools version to Swift 5.10
* Remove Swift 5.9 jobs where appropriate in main.yml, pull_request.yml

Result:

Code reflects our support window.
This commit is contained in:
Rick Newton-Rogers 2025-05-07 06:52:53 +01:00 committed by GitHub
parent f1f6f77219
commit 0fc472ba34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 3 additions and 5 deletions

View File

@ -11,7 +11,6 @@ jobs:
name: Unit tests
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
with:
linux_5_9_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
linux_5_10_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
linux_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
linux_6_1_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"

View File

@ -14,7 +14,6 @@ jobs:
name: Unit tests
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
with:
linux_5_9_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
linux_5_10_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
linux_6_0_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
linux_6_1_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"

View File

@ -1,4 +1,4 @@
// swift-tools-version:5.8
// swift-tools-version:5.10
//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project

View File

@ -124,7 +124,7 @@ extension DebugInboundEventsHandler.Event {
}
#if compiler(>=6.0)
extension DebugInboundEventsHandler.Event: @retroactive Equatable {}
extension DebugInboundEventsHandler.Event: Equatable {}
#else
extension DebugInboundEventsHandler.Event: Equatable {}
#endif

View File

@ -111,7 +111,7 @@ extension DebugOutboundEventsHandler.Event {
}
#if compiler(>=6.0)
extension DebugOutboundEventsHandler.Event: @retroactive Equatable {}
extension DebugOutboundEventsHandler.Event: Equatable {}
#else
extension DebugOutboundEventsHandler.Event: Equatable {}
#endif