Drop Swift 6.0 (#576)

Motivation:

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

Modifications:

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

Result:

Code reflects our support window.

---------

Co-authored-by: George Barnett <gbarnett@apple.com>
This commit is contained in:
Rick Newton-RogersandGeorge Barnett authored and GitHub committed 2026-04-07 12:07:47 +00:00
1 parent fad35ae01f
commit 3f337058cc
10 files changed
+5 -18

No files matched your search

-1
View File
@@ -15,7 +15,6 @@ jobs:
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
with:
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"
linux_6_2_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
linux_6_3_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
-1
View File
@@ -18,7 +18,6 @@ jobs:
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
with:
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"
# We can't set warnings-as-errors for 6.1 because we can't suppress the ImplementationOnly import warning.
linux_6_1_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
linux_6_2_arguments_override: "-Xswiftc -warnings-as-errors -Xswiftc -Wwarning -Xswiftc ImplementationOnlyDeprecated --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
@@ -17,7 +17,7 @@ import NIOCore
import NIOEmbedded
import NIOSSL
let benchmarks = {
let benchmarks: @Sendable () -> Void = {
let defaultMetrics: [BenchmarkMetric] = [
.mallocCountTotal
]
+1 -1
View File
@@ -1,4 +1,4 @@
// swift-tools-version:5.10
// swift-tools-version:6.1
import PackageDescription
@@ -1,3 +0,0 @@
{
"mallocCountTotal" : 201948
}
@@ -1,3 +0,0 @@
{
"mallocCountTotal": 629000
}
@@ -1,3 +0,0 @@
{
"mallocCountTotal": 201941
}
@@ -1,3 +0,0 @@
{
"mallocCountTotal": 631872
}
+1 -1
View File
@@ -1,4 +1,4 @@
// swift-tools-version:6.0
// swift-tools-version:6.1
//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
+2 -1
View File
@@ -64,4 +64,5 @@ SwiftNIO SSL | Minimum Swift Version
`2.27.0 ..< 2.29.3` | 5.8
`2.29.3 ..< 2.31.0` | 5.9
`2.31.0 ..< 2.35.0` | 5.10
`2.35.0 ...` | 6.0
`2.35.0 ..< 2.37.0` | 6.0
`2.37.0 ..<` | 6.1