File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ jobs:
17
17
- ghcr.io/swiftwasm/swift:5.8-bionic
18
18
- ghcr.io/swiftwasm/swift:bionic
19
19
- dockerfile : ./5.8/ubuntu/20.04/Dockerfile
20
- platforms : ' linux/amd64'
20
+ platforms : ' linux/amd64,linux/arm64 '
21
21
tags :
22
22
- ghcr.io/swiftwasm/swift:5.8-focal
23
23
- ghcr.io/swiftwasm/swift:focal
24
24
- dockerfile : ./5.8/ubuntu/22.04/Dockerfile
25
- platforms : ' linux/amd64,linux/arm64 '
25
+ platforms : ' linux/amd64'
26
26
tags :
27
27
- ghcr.io/swiftwasm/swift:5.8-jammy
28
28
- ghcr.io/swiftwasm/swift:jammy
Original file line number Diff line number Diff line change @@ -25,11 +25,22 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
25
25
26
26
27
27
ARG SWIFT_TAG=swift-wasm-5.8.0-RELEASE
28
- ENV SWIFT_PLATFORM_SUFFIX =ubuntu20.04_x86_64.tar.gz
28
+ ENV SWIFT_PLATFORM =ubuntu20.04
29
29
ENV SWIFT_TAG=$SWIFT_TAG
30
30
31
31
RUN set -e; \
32
- SWIFT_BIN_URL="https://github.com/swiftwasm/swift/releases/download/$SWIFT_TAG/$SWIFT_TAG-$SWIFT_PLATFORM_SUFFIX" \
32
+ ARCH_NAME="$(dpkg --print-architecture)" ; \
33
+ url=; \
34
+ case "${ARCH_NAME##*-}" in \
35
+ 'amd64' ) \
36
+ OS_ARCH_SUFFIX='x86_64' ; \
37
+ ;; \
38
+ 'arm64' ) \
39
+ OS_ARCH_SUFFIX='aarch64' ; \
40
+ ;; \
41
+ *) echo >&2 "error: unsupported architecture: '$ARCH_NAME'" ; exit 1 ;; \
42
+ esac; \
43
+ SWIFT_BIN_URL="https://github.com/swiftwasm/swift/releases/download/$SWIFT_TAG/$SWIFT_TAG-${SWIFT_PLATFORM}_${OS_ARCH_SUFFIX}.tar.gz" \
33
44
&& export DEBIAN_FRONTEND=noninteractive \
34
45
&& apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
35
46
&& curl -fsSL "$SWIFT_BIN_URL" -o swift.tar.gz \
You can’t perform that action at this time.
0 commit comments