1
1
ARG SWIFLINT_DOCKER_IMAGE
2
2
ARG SWIFT_DOCKER_IMAGE
3
3
4
- FROM $SWIFLINT_DOCKER_IMAGE as swiftLint
5
-
6
4
FROM $SWIFT_DOCKER_IMAGE as carton-builder
7
5
ARG SWIFT_TAG
8
6
ARG CARTON_TAG
@@ -14,20 +12,6 @@ RUN git clone https://github.com/swiftwasm/carton.git && \
14
12
swift build -c release && \
15
13
mv .build/release/carton /usr/bin
16
14
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
-
31
15
FROM ubuntu:22.04 as binaryen
32
16
33
17
RUN apt-get update && apt-get install -y curl
@@ -131,19 +115,12 @@ RUN wget --no-verbose -O /tmp/firefox.tar.bz2 \
131
115
&& rm /tmp/firefox.tar.bz2 \
132
116
&& ln -fs /opt/firefox/firefox /usr/bin/firefox
133
117
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
-
138
118
# Install latest carton tool
139
119
COPY --from=carton-builder /usr/bin/carton /usr/bin/carton
140
120
141
121
# Install latest binaryen tools (carton still uses some legacy version)
142
122
COPY --from=binaryen binaryen-version_105/bin/* /usr/local/bin
143
123
144
- # Install swift format
145
- COPY --from=swift-format-builder swift-format/.build/release/swift-format /usr/local/bin/swift-format
146
-
147
124
COPY --from=symbolicator-builder wasm-split /usr/local/bin
148
125
149
126
# Print Installed Versions
@@ -153,8 +130,6 @@ RUN node --version
153
130
RUN npm --version
154
131
RUN npx --version
155
132
RUN yarn --version
156
- RUN swiftlint --version
157
- RUN swift-format --version
158
133
RUN cypress --version
159
134
RUN wasm-opt --version
160
135
RUN brotli --version
0 commit comments