Skip to content

Commit 0918962

Browse files
committed
Use Swift 5.3
1 parent eb0f8ea commit 0918962

File tree

8 files changed

+51
-11
lines changed

8 files changed

+51
-11
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
matrix:
1111
version:
1212
- 5.2.5
13+
- 5.3
1314
- nightly-5.3
1415
- nightly
1516
container:
@@ -40,6 +41,7 @@ jobs:
4041
- centos8
4142
version:
4243
- 5.2.5
44+
- 5.3
4345
container:
4446
image: swift:${{ matrix.version }}-${{ matrix.os }}
4547
steps:

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG swift_version=5.2.5
1+
ARG swift_version=5.3
22
FROM stevapple/swift-scf:$swift_version
33
# needed to do again after FROM due to docker limitation
44
ARG swift_version
@@ -15,7 +15,7 @@ RUN wget -q https://raw.githubusercontent.com/apple/swift/main/utils/symbolicate
1515
RUN chmod 755 $HOME/.tools/symbolicate-linux-fatal
1616

1717
# swiftformat (until part of the toolchain)
18-
ARG swiftformat_version=0.45.6
18+
ARG swiftformat_version=0.46.3
1919
RUN git clone --branch $swiftformat_version --depth 1 https://github.com/nicklockwood/SwiftFormat $HOME/.tools/swift-format
2020
RUN cd $HOME/.tools/swift-format && swift build -c release
2121
RUN ln -s $HOME/.tools/swift-format/.build/release/swiftformat $HOME/.tools/swiftformat

docker/Dockerfile.ubuntu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG swift_version=5.2.5
1+
ARG swift_version=5.3
22
ARG ubuntu_version=bionic
33
ARG base_image=swift:$swift_version-$ubuntu_version
44
FROM $base_image
@@ -28,7 +28,7 @@ RUN wget -q https://raw.githubusercontent.com/apple/swift/main/utils/symbolicate
2828
RUN chmod 755 $HOME/.tools/symbolicate-linux-fatal
2929

3030
# swiftformat (until part of the toolchain)
31-
ARG swiftformat_version=0.45.6
31+
ARG swiftformat_version=0.46.3
3232
RUN git clone --branch $swiftformat_version --depth 1 https://github.com/nicklockwood/SwiftFormat $HOME/.tools/swift-format
3333
RUN cd $HOME/.tools/swift-format && swift build -c release
3434
RUN ln -s $HOME/.tools/swift-format/.build/release/swiftformat $HOME/.tools/swiftformat

docker/docker-compose.bionic.52.yaml

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

55
runtime-setup:
6-
image: swift-aws-lambda:18.04-5.2
6+
image: swift-tencent-scf:scf-5.2.5
77
build:
88
dockerfile: Dockerfile.ubuntu
99
args:
1010
ubuntu_version: "bionic"
11-
swift_version: "5.2"
11+
swift_version: "5.2.5"
1212

1313
test:
14-
image: swift-aws-lambda:18.04-5.2
14+
image: swift-tencent-scf:scf-5.2.5
1515

1616
test-samples:
17-
image: swift-aws-lambda:18.04-5.2
17+
image: swift-tencent-scf:scf-5.2.5
1818

1919
shell:
20-
image: swift-aws-lambda:18.04-5.2
20+
image: swift-tencent-scf:scf-5.2.5

docker/docker-compose.bionic.53.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: "3"
2+
3+
services:
4+
5+
runtime-setup:
6+
image: swift-tencent-scf:scf-5.3
7+
build:
8+
dockerfile: Dockerfile.ubuntu
9+
args:
10+
ubuntu_version: "bionic"
11+
swift_version: "5.3"
12+
13+
test:
14+
image: swift-tencent-scf:scf-5.3
15+
16+
test-samples:
17+
image: swift-tencent-scf:scf-5.3
18+
19+
shell:
20+
image: swift-tencent-scf:scf-5.3

docker/docker-compose.scf.52.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: "3"
2+
3+
services:
4+
5+
runtime-setup:
6+
image: swift-tencent-scf:scf-5.2.5
7+
build:
8+
args:
9+
swift_version: "5.2.5"
10+
11+
test:
12+
image: swift-tencent-scf:scf-5.2.5
13+
14+
test-samples:
15+
image: swift-tencent-scf:scf-5.2.5
16+
17+
shell:
18+
image: swift-tencent-scf:scf-5.2.5

docker/docker-compose.scf.53.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
image: swift-tencent-scf:scf-5.3
77
build:
88
args:
9-
swift_version: "nightly-5.3"
9+
swift_version: "5.3"
1010

1111
test:
1212
image: swift-tencent-scf:scf-5.3

docker/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# this file is not designed to be run directly
22
# instead, use the docker-compose.<os>.<swift> files
3-
# eg docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.1804.52.yaml run test
3+
# eg docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.scf.53.yaml run test
44
version: "3"
55

66
services:

0 commit comments

Comments
 (0)