Skip to content

Commit e8a138f

Browse files
committed
Set up the NDK with the script shipped in the Swift SDK bundle
1 parent 00f5380 commit e8a138f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ RUN mkdir -p "$(dirname "$ANDROID_NDK_HOME")" \
2323
RUN swift sdk install "$SWIFT_SDK_URL" --checksum "$SWIFT_SDK_CHECKSUM" \
2424
&& swift sdk list
2525

26-
# the artifact bundle expects the NDK sysroot at `ndk-sysroot` inside the bundle
26+
# the bundle ships a script that links the NDK sysroot, the clang resource
27+
# directory and swiftrt.o into place, using ANDROID_NDK_HOME
2728
RUN BUNDLE=$(dirname "$(find / -path '*swift-sdks*' -name 'swift-sdk.json' | head -1)") \
28-
&& ln -s "$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot" "$BUNDLE/ndk-sysroot" \
29+
&& "$BUNDLE/scripts/setup-android-sdk.sh" \
2930
&& test -f "$BUNDLE/ndk-sysroot/usr/include/jni.h"
3031

3132
WORKDIR /package

0 commit comments

Comments
 (0)