From ea2a824383b795ba45780158e42a5db22b7ab15a Mon Sep 17 00:00:00 2001 From: atsushieno Date: Mon, 7 Jun 2021 19:00:11 +0900 Subject: [PATCH] [android] make $NDK optional in the build script. --- test-android/build-scripts/build-env.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test-android/build-scripts/build-env.sh b/test-android/build-scripts/build-env.sh index 7a407e02..2e59d84d 100755 --- a/test-android/build-scripts/build-env.sh +++ b/test-android/build-scripts/build-env.sh @@ -24,7 +24,9 @@ export DIST=$PWD/build-artifacts # This is a symlink pointing to the real Android NDK # Must be the same as $ANDROID_NDK_HOME see: # https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md +if [ -z "$NDK" ]; then export NDK=~/Android/Sdk/ndk/21.3.6528147 +fi # All the built binaries, libs and their headers will be installed here export PREFIX=$DEV/opt/android