Skip to content

Commit dbfca16

Browse files
authored
Drop support for Swift 5.2 and 5.3 (#337)
As outlined in a [Swift forums post in November ’21](https://forums.swift.org/t/swiftnio-swift-version-support/53232), SwiftNIO will only support the latest non-patch Swift release and the 2 immediately prior non-patch versions. - drop support for Swift 5.2 and 5.3. - update CI for Swift 5.4 to run on bionic instead of focal to ensure that we still test bionic.
1 parent c897189 commit dbfca16

File tree

7 files changed

+11
-94
lines changed

7 files changed

+11
-94
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.2
1+
// swift-tools-version:5.4
22
//===----------------------------------------------------------------------===//
33
//
44
// This source file is part of the SwiftNIO open source project

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To depend on `swift-nio-http2`, put the following in the `dependencies` of your
2424

2525
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.19.2"),
2626

27-
SwiftNIO HTTP2 1.18.x and later support Swift 5.2 and above. 1.17.x and earlier also support Swift 5.0 and 5.1.
27+
SwiftNIO HTTP2 1.21.x and later support Swift 5.4 and above. 1.20.x and earlier also support Swift 5.2 and 5.3. 1.17.x and earlier also support Swift 5.0 and 5.1.
2828

2929
### `swift-nio-http2` 0.x
3030

docker/docker-compose.1604.52.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

docker/docker-compose.1804.53.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

docker/docker-compose.2004.54.yaml renamed to docker/docker-compose.1804.54.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "3"
33
services:
44

55
runtime-setup:
6-
image: swift-nio-http2:20.04-5.4
6+
image: swift-nio-http2:18.04-5.4
77
build:
88
args:
99
base_image: "swift:5.4-focal"
@@ -12,19 +12,19 @@ services:
1212
h2spec_version: "2.2.1"
1313

1414
unit-tests:
15-
image: swift-nio-http2:20.04-5.4
15+
image: swift-nio-http2:18.04-5.4
1616

1717
integration-tests:
18-
image: swift-nio-http2:20.04-5.4
18+
image: swift-nio-http2:18.04-5.4
1919

2020
performance-test:
21-
image: swift-nio-http2:20.04-5.4
21+
image: swift-nio-http2:18.04-5.4
2222

2323
h2spec:
24-
image: swift-nio-http2:20.04-5.4
24+
image: swift-nio-http2:18.04-5.4
2525

2626
test:
27-
image: swift-nio-http2:20.04-5.4
27+
image: swift-nio-http2:18.04-5.4
2828
environment:
2929
- MAX_ALLOCS_ALLOWED_1k_requests_interleaved=46200
3030
- MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=45100
@@ -39,4 +39,4 @@ services:
3939
- MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent=303150
4040

4141
shell:
42-
image: swift-nio-http2:20.04-5.4
42+
image: swift-nio-http2:18.04-5.4

scripts/build_podspec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Pod::Spec.new do |s|
102102
s.documentation_url = 'https://apple.github.io/swift-nio-http2/'
103103
s.module_name = '${target#Swift}'
104104
105-
s.swift_version = '5.2'
105+
s.swift_version = '5.4'
106106
s.cocoapods_version = '>=1.6.0'
107107
s.ios.deployment_target = '10.0'
108108
s.osx.deployment_target = '10.12'

scripts/check_no_api_breakages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -eu
1818
function usage() {
1919
echo >&2 "Usage: $0 REPO-GITHUB-URL NEW-VERSION OLD-VERSIONS..."
2020
echo >&2
21-
echo >&2 "This script requires a Swift 5.2+ toolchain."
21+
echo >&2 "This script requires a Swift 5.6+ toolchain."
2222
echo >&2
2323
echo >&2 "Examples:"
2424
echo >&2

0 commit comments

Comments
 (0)