From 1009b29a060d5e24552d2428f88438b784b87170 Mon Sep 17 00:00:00 2001 From: halx99 Date: Sat, 6 Aug 2022 22:10:56 +0800 Subject: [PATCH] Fix andorid ci --- tools/unix-ci/setup_android.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/unix-ci/setup_android.py b/tools/unix-ci/setup_android.py index 9740d15a21..a615ea3681 100644 --- a/tools/unix-ci/setup_android.py +++ b/tools/unix-ci/setup_android.py @@ -116,11 +116,13 @@ def export_environment(ndk_only): with open(os.path.join(ROOT_DIR, "environment.sh"), "a") as myfile: if not ndk_only: myfile.write("export ANDROID_SDK_ROOT=" + ANDROID_SDK_ROOT + "\n") # refer to: https://developer.android.google.cn/studio/command-line/variables + myfile.write("export ANDROID_HOME=" + ANDROID_SDK_ROOT + "\n") # github action has ANDROID_HOME=/usr/local/lib/android/sdk myfile.write("export ANDROID_NDK=" + ANDROID_NDK + "\n") # for lua binding generator with open(os.path.join(ROOT_DIR, "environment.ps1"), "a") as myfile: if not ndk_only: myfile.write("$env:ANDROID_SDK_ROOT=\"" + ANDROID_SDK_ROOT + "\"\n") + myfile.write("$env:ANDROID_HOME=\"" + ANDROID_SDK_ROOT + "\"\n") myfile.write("$env:ANDROID_NDK=\"" + ANDROID_NDK + "\"\n") # for lua binding generator def main(ndk_only):