Skip to content

Commit 7f5a06b

Browse files
committed
Fixed CI issue which Download NDK before compile Exynos backend
Signed-off-by: jiseong.oh <[email protected]>
1 parent 95d8f3f commit 7f5a06b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.ci/scripts/setup-samsung-linux-deps.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ download_ai_lite_core() {
3030
}
3131

3232
install_enn_backend() {
33+
NDK_INSTALLATION_DIR=/opt/ndk
34+
rm -rf "${NDK_INSTALLATION_DIR}" && mkdir -p "${NDK_INSTALLATION_DIR}"
35+
ANDROID_NDK_VERSION=r27b
36+
37+
pushd .
38+
cd /tmp
39+
curl -Os --retry 3 "https://ossci-android.s3.amazonaws.com/android-ndk-${ANDROID_NDK_VERSION}-linux.zip"
40+
unzip -qo "android-ndk-${ANDROID_NDK_VERSION}-linux.zip"
41+
42+
# Print the content for manual verification
43+
ls -lah "android-ndk-${ANDROID_NDK_VERSION}"
44+
mv "android-ndk-${ANDROID_NDK_VERSION}"/* "${NDK_INSTALLATION_DIR}"
45+
popd
3346
# build Exynos backend
3447
export ANDROID_NDK_ROOT=${ANDROID_NDK_ROOT:-/opt/ndk}
3548
bash backends/samsung/build.sh --build all

0 commit comments

Comments
 (0)