Skip to content

Commit 1e370ff

Browse files
committed
Update Swift versions
Updates the Swift version to the latest released Swift version. This ensures that the projects are fuzzed against the latest compiler and runtime versions. Additionally, some projects don't support 5.10 anymore so bumping to 6.2 should give us the latest versions of those projects. Update projects/swift-nio/Dockerfile Co-authored-by: Kleis Auke Wolthuizen <github@kleisauke.nl> Update base os version Update swift deps
1 parent f6aee5a commit 1e370ff

File tree

7 files changed

+22
-16
lines changed

7 files changed

+22
-16
lines changed

infra/base-images/base-builder/install_swift_ubuntu_24_04.sh

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,42 +19,45 @@
1919
source /etc/os-release
2020

2121
if [[ "$VERSION_ID" == "20.04" ]]; then
22-
SWIFT_PACKAGES="wget \
23-
binutils \
22+
SWIFT_PACKAGES="binutils \
2423
git \
24+
unzip \
2525
gnupg2 \
2626
libc6-dev \
27-
libcurl4 \
27+
libcurl4-openssl-dev \
2828
libedit2 \
29-
libgcc-9-dev \
30-
libpython2.7 \
29+
libgcc-11-dev \
30+
libpython3-dev \
3131
libsqlite3-0 \
32-
libstdc++-9-dev \
33-
libxml2 \
32+
libstdc++-11-dev \
33+
libxml2-dev \
3434
libz3-dev \
3535
pkg-config \
36+
python3-lldb-13 \
3637
tzdata \
3738
zlib1g-dev"
3839
SWIFT_URL="https://download.swift.org/swift-5.10.1-release/ubuntu2004/swift-5.10.1-RELEASE/swift-5.10.1-RELEASE-ubuntu_20_04.tar.gz"
3940
SWIFT_DIR="swift-5.10.1-RELEASE-ubuntu_20_04"
4041
elif [[ "$VERSION_ID" == "24.04" ]]; then
41-
SWIFT_PACKAGES="wget \
42-
binutils \
42+
SWIFT_PACKAGES="binutils \
4343
git \
44+
unzip \
4445
gnupg2 \
4546
libc6-dev \
46-
libcurl4 \
47+
libcurl4-openssl-dev \
4748
libedit2 \
4849
libgcc-13-dev \
50+
libpython3-dev \
4951
libsqlite3-0 \
5052
libstdc++-13-dev \
51-
libxml2 \
53+
libxml2-dev \
54+
libncurses-dev \
5255
libz3-dev \
5356
pkg-config \
5457
tzdata \
5558
zlib1g-dev"
56-
SWIFT_URL="https://download.swift.org/swift-5.10.1-release/ubuntu2404/swift-5.10.1-RELEASE/swift-5.10.1-RELEASE-ubuntu24.04.tar.gz"
57-
SWIFT_DIR="swift-5.10.1-RELEASE-ubuntu24.04"
59+
SWIFT_URL="https://download.swift.org/swift-6.2.3-release/ubuntu2404/swift-6.2.3-RELEASE/swift-6.2.3-RELEASE-ubuntu24.04.tar.gz"
60+
SWIFT_DIR="swift-6.2.3-RELEASE-ubuntu24.04"
5861
else
5962
echo "Unsupported Ubuntu version: $VERSION_ID"
6063
exit 1

projects/grpc-swift/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
################################################################################
1616

17-
FROM gcr.io/oss-fuzz-base/base-builder-swift
17+
FROM gcr.io/oss-fuzz-base/base-builder-swift:ubuntu-24-04
1818

1919
# specific to project
2020
RUN apt-get update && apt-get install -y zlib1g-dev

projects/grpc-swift/project.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ sanitizers:
1111
- address
1212
- thread
1313
main_repo: 'https://github.com/grpc/grpc-swift'
14+
base_os_version: ubuntu-24-04

projects/swift-nio/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
################################################################################
1616

17-
FROM gcr.io/oss-fuzz-base/base-builder-swift
17+
FROM gcr.io/oss-fuzz-base/base-builder-swift:ubuntu-24-04
1818

1919
# specific swift-nio
2020
RUN git clone --depth 1 https://github.com/google/fuzzing

projects/swift-nio/project.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ sanitizers:
1212
- address
1313
- thread
1414
main_repo: 'https://github.com/apple/swift-nio.git'
15+
base_os_version: ubuntu-24-04

projects/swift-protobuf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
################################################################################
1616

17-
FROM gcr.io/oss-fuzz-base/base-builder-swift
17+
FROM gcr.io/oss-fuzz-base/base-builder-swift:ubuntu-24-04
1818

1919
RUN git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/apple/swift-protobuf.git
2020
COPY build.sh $SRC

projects/swift-protobuf/project.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ coverage_extra_args: >
1515
-ignore-filename-regex=.*\.pb\.swift
1616
-ignore-filename-regex=.*/\.build/.*
1717
main_repo: 'https://github.com/apple/swift-protobuf.git'
18+
base_os_version: ubuntu-24-04

0 commit comments

Comments
 (0)