Skip to content

Commit 14fdceb

Browse files
Add Swift toolchain (6.2.0)
1 parent 7022ef4 commit 14fdceb

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

images/wkdev_sdk/Containerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,17 @@ RUN bash -c 'for binary in /usr/bin/*-18; do \
150150
ln -s "${binary}" "/usr/local/bin/${binary_name::-3}"; \
151151
done'
152152

153+
# Install Swift nightly
154+
ENV SWIFTLY_HOME_DIR="/opt/swift" \
155+
SWIFTLY_BIN_DIR="/opt/swift/bin" \
156+
SWIFTLY_TOOLCHAINS_DIR="/opt/swift/toolchains" \
157+
PATH="/opt/swift/bin:${PATH}"
158+
159+
RUN ${CURL_DOWNLOAD} --remote-name https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
160+
tar zxf swiftly-$(uname -m).tar.gz && \
161+
./swiftly init --no-modify-profile --quiet-shell-followup && \
162+
rm -f swiftly-$(uname -m).tar.gz
163+
153164
# Fix Qt6 system packages - missing symlinks in the Ubuntu-provided packages.
154165
RUN export QT_VERSION=$(qmake6 -query QT_VERSION) && \
155166
for directory in /usr/include/x86_64-linux-gnu/qt6/*; do \
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Clang toolchain (current version: 18)
22
clang-18 clangd-18 clang-format-18 clang-tidy-18 lld-18 lldb-18 libstdc++-14-dev
3+
4+
# Swift toolchain
5+
gnupg2 libcurl4-openssl-dev libz3-dev

0 commit comments

Comments
 (0)