11ARG SWIFLINT_DOCKER_IMAGE
22ARG SWIFT_DOCKER_IMAGE
33
4- FROM $SWIFLINT_DOCKER_IMAGE as swiftLint
5-
64FROM $SWIFT_DOCKER_IMAGE as carton-builder
75ARG SWIFT_TAG
86ARG CARTON_TAG
@@ -14,20 +12,6 @@ RUN git clone https://github.com/swiftwasm/carton.git && \
1412 swift build -c release && \
1513 mv .build/release/carton /usr/bin
1614
17- FROM $SWIFT_DOCKER_IMAGE as swift-format-builder
18-
19- ARG SWIFT_FORMAT_TAG
20-
21- # FIXME(katei): The sed hack is required to pin the swift-syntax version to `0.50700.0`.
22- # Without this hack, SwiftPM uses swift-syntax `0.50700.1`, which is incompatible with 5.7.0
23- # Docker image. Remove the hack after Apple folks will release an image compatible with swift-syntax
24- # `0.50700.1` (probably `swift:5.7.1`?)
25- RUN git clone https://github.com/apple/swift-format.git && \
26- cd swift-format && \
27- git checkout "tags/$SWIFT_FORMAT_TAG" && \
28- sed -i -e 's/.upToNextMinor(from: "0.50700.0")/exact: "0.50700.0"/' Package.swift && \
29- swift build -c release
30-
3115FROM ubuntu:22.04 as binaryen
3216
3317RUN apt-get update && apt-get install -y curl
@@ -131,19 +115,12 @@ RUN wget --no-verbose -O /tmp/firefox.tar.bz2 \
131115 && rm /tmp/firefox.tar.bz2 \
132116 && ln -fs /opt/firefox/firefox /usr/bin/firefox
133117
134- # Intall swift lint from docker
135- COPY --from=swiftLint /usr/bin/swiftlint /usr/bin/swiftlint
136- COPY --from=swiftLint /usr/lib/libsourcekitdInProc.so /usr/lib/
137-
138118# Install latest carton tool
139119COPY --from=carton-builder /usr/bin/carton /usr/bin/carton
140120
141121# Install latest binaryen tools (carton still uses some legacy version)
142122COPY --from=binaryen binaryen-version_105/bin/* /usr/local/bin
143123
144- # Install swift format
145- COPY --from=swift-format-builder swift-format/.build/release/swift-format /usr/local/bin/swift-format
146-
147124COPY --from=symbolicator-builder wasm-split /usr/local/bin
148125
149126# Print Installed Versions
@@ -153,8 +130,6 @@ RUN node --version
153130RUN npm --version
154131RUN npx --version
155132RUN yarn --version
156- RUN swiftlint --version
157- RUN swift-format --version
158133RUN cypress --version
159134RUN wasm-opt --version
160135RUN brotli --version
0 commit comments