File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
62
62
63
63
COPY scripts/install-swift.sh /scripts/install-swift.sh
64
64
RUN chmod ugo+x /scripts/install-swift.sh
65
- RUN /scripts/install-swift.sh "${SWIFT_TOOLCHAIN_URL}"
65
+ RUN /scripts/install-swift.sh
66
66
ENV PATH="/usr/local/swift/bin:${PATH}"
67
67
68
- ARG ANDROID_NDK_VERSION=android-ndk-r27c
68
+ ARG ANDROID_NDK_VERSION=
69
69
70
70
ENV ANDROID_NDK_VERSION=$ANDROID_NDK_VERSION
71
71
Original file line number Diff line number Diff line change @@ -13,7 +13,13 @@ echo "Installing Android NDK"
13
13
mkdir -p /usr/local/ndk
14
14
pushd /usr/local/ndk > /dev/null
15
15
16
- NDKFILE=${NDK_VERSION} -linux.zip
16
+ if [[ " ${ANDROID_NDK_VERSION} " == " " ]]; then
17
+ echo " $0 : Missing ANDROID_NDK_VERSION environment"
18
+ exit 1
19
+ fi
20
+
21
+
22
+ NDKFILE=${ANDROID_NDK_VERSION} -linux.zip
17
23
18
24
NDKURL=" https://dl.google.com/android/repository/${NDKFILE} "
19
25
echo " Going to fetch ${NDKURL} "
Original file line number Diff line number Diff line change 8
8
9
9
set -e
10
10
11
- SWIFT_TOOLCHAIN_URL=$1
11
+ if [[ " ${SWIFT_TOOLCHAIN_URL} " == " " ]]; then
12
+ echo " $0 : Missing SWIFT_TOOLCHAIN_URL environment"
13
+ exit 1
14
+ fi
15
+
12
16
echo " Installing Swift from: ${SWIFT_TOOLCHAIN_URL} "
13
17
14
18
# Make a temporary directory
You can’t perform that action at this time.
0 commit comments