Skip to content

Commit 7028cfb

Browse files
authored
Raise minimum swift version to 5.8 (#1825)
1 parent 9f0956e commit 7028cfb

13 files changed

+29
-27
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
- image: swiftlang/swift:nightly-jammy
2424
# No TSAN because of: https://github.com/apple/swift/issues/59068
2525
# swift-test-flags: "--sanitize=thread"
26-
- image: swift:5.9-jammy
26+
- image: swift:5.10-jammy
2727
# No TSAN because of: https://github.com/apple/swift/issues/59068
2828
# swift-test-flags: "--sanitize=thread"
29-
- image: swift:5.8-focal
29+
- image: swift:5.9-jammy
3030
# No TSAN because of: https://github.com/apple/swift/issues/59068
3131
# swift-test-flags: "--sanitize=thread"
32-
- image: swift:5.7-focal
32+
- image: swift:5.8-focal
3333
# No TSAN because of: https://github.com/apple/swift/issues/59068
3434
# swift-test-flags: "--sanitize=thread"
3535
name: Build and Test on ${{ matrix.image }}
@@ -60,8 +60,8 @@ jobs:
6060
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong: 163000
6161
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_client: 170000
6262
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_server: 170000
63-
- image: swift:5.9-jammy
64-
swift-version: 5.9
63+
- image: swift:5.10-jammy
64+
swift-version: '5.10'
6565
env:
6666
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_10_requests: 323000
6767
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_1_request: 161000
@@ -71,8 +71,8 @@ jobs:
7171
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong: 163000
7272
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_client: 170000
7373
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_server: 170000
74-
- image: swift:5.8-focal
75-
swift-version: 5.8
74+
- image: swift:5.9-jammy
75+
swift-version: 5.9
7676
env:
7777
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_10_requests: 323000
7878
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_1_request: 161000
@@ -82,8 +82,8 @@ jobs:
8282
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong: 163000
8383
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_client: 170000
8484
MAX_ALLOCS_ALLOWED_unary_1k_ping_pong_interceptors_server: 170000
85-
- image: swift:5.7-focal
86-
swift-version: 5.7
85+
- image: swift:5.8-focal
86+
swift-version: 5.8
8787
env:
8888
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_10_requests: 323000
8989
MAX_ALLOCS_ALLOWED_bidi_1k_rpcs_1_request: 161000
@@ -116,9 +116,9 @@ jobs:
116116
matrix:
117117
include:
118118
- image: swiftlang/swift:nightly-jammy
119+
- image: swift:5.10-jammy
119120
- image: swift:5.9-jammy
120121
- image: swift:5.8-focal
121-
- image: swift:5.7-focal
122122
name: Integration Tests on ${{ matrix.image }}
123123
runs-on: ubuntu-latest
124124
container:

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.7
1+
// swift-tools-version:5.8
22
/*
33
* Copyright 2017, gRPC Authors All rights reserved.
44
*
@@ -106,7 +106,7 @@ extension Target.Dependency {
106106
static let interopTestImplementation: Self =
107107
.target(name: "GRPCInteroperabilityTestsImplementation")
108108
static let interoperabilityTests: Self = .target(name: "InteroperabilityTests")
109-
109+
110110
// Product dependencies
111111
static let argumentParser: Self = .product(
112112
name: "ArgumentParser",
@@ -386,7 +386,7 @@ extension Target {
386386
.grpcProtobuf
387387
]
388388
)
389-
389+
390390
static let interopTestImplementation: Target = .target(
391391
name: "GRPCInteroperabilityTestsImplementation",
392392
dependencies: [

Performance/Benchmarks/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.7
1+
// swift-tools-version: 5.8
22
/*
33
* Copyright 2023, gRPC Authors All rights reserved.
44
*
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"mallocCountTotal" : 11,
33
"memoryLeaked" : 0,
4-
"releaseCount" : 1011,
4+
"releaseCount" : 3012,
55
"retainCount" : 2000,
66
"syscalls" : 0
77
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"mallocCountTotal" : 0,
33
"memoryLeaked" : 0,
4-
"releaseCount" : 1005,
5-
"retainCount" : 1005,
4+
"releaseCount" : 3001,
5+
"retainCount" : 1000,
66
"syscalls" : 0
77
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"mallocCountTotal" : 0,
33
"memoryLeaked" : 0,
4-
"releaseCount" : 1005,
5-
"retainCount" : 1005,
4+
"releaseCount" : 3001,
5+
"retainCount" : 1000,
66
"syscalls" : 0
77
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"mallocCountTotal" : 2000,
33
"memoryLeaked" : 0,
4-
"releaseCount" : 4005,
5-
"retainCount" : 2005,
4+
"releaseCount" : 6001,
5+
"retainCount" : 2000,
66
"syscalls" : 0
77
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"mallocCountTotal" : 0,
33
"memoryLeaked" : 0,
4-
"releaseCount" : 1005,
5-
"retainCount" : 1005,
4+
"releaseCount" : 3001,
5+
"retainCount" : 1000,
66
"syscalls" : 0
77
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"mallocCountTotal" : 0,
33
"memoryLeaked" : 0,
4-
"releaseCount" : 2002000,
4+
"releaseCount" : 2002001,
55
"retainCount" : 1999000,
66
"syscalls" : 0
77
}

0 commit comments

Comments
 (0)