Skip to content

Commit 23db569

Browse files
committed
1 parent 4927569 commit 23db569

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

swift-ci/sdks/android/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
6262

6363
COPY scripts/install-swift.sh /scripts/install-swift.sh
6464
RUN chmod ugo+x /scripts/install-swift.sh
65-
RUN /scripts/install-swift.sh "${SWIFT_TOOLCHAIN_URL}"
65+
RUN /scripts/install-swift.sh
6666
ENV PATH="/usr/local/swift/bin:${PATH}"
6767

68-
ARG ANDROID_NDK_VERSION=android-ndk-r27c
68+
ARG ANDROID_NDK_VERSION=
6969

7070
ENV ANDROID_NDK_VERSION=$ANDROID_NDK_VERSION
7171

swift-ci/sdks/android/scripts/install-ndk.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ echo "Installing Android NDK"
1313
mkdir -p /usr/local/ndk
1414
pushd /usr/local/ndk >/dev/null
1515

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
1723

1824
NDKURL="https://dl.google.com/android/repository/${NDKFILE}"
1925
echo "Going to fetch ${NDKURL}"

swift-ci/sdks/android/scripts/install-swift.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
set -e
1010

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+
1216
echo "Installing Swift from: ${SWIFT_TOOLCHAIN_URL}"
1317

1418
# Make a temporary directory

0 commit comments

Comments
 (0)