Skip to content

Commit e31640c

Browse files
committed
Fix andorid ci
1 parent e2b2281 commit e31640c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/unix-ci/setup_android.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,13 @@ def export_environment(ndk_only):
116116
with open(os.path.join(ROOT_DIR, "environment.sh"), "a") as myfile:
117117
if not ndk_only:
118118
myfile.write("export ANDROID_SDK_ROOT=" + ANDROID_SDK_ROOT + "\n") # refer to: https://developer.android.google.cn/studio/command-line/variables
119+
myfile.write("export ANDROID_HOME=" + ANDROID_SDK_ROOT + "\n") # github action has ANDROID_HOME=/usr/local/lib/android/sdk
119120
myfile.write("export ANDROID_NDK=" + ANDROID_NDK + "\n") # for lua binding generator
120121

121122
with open(os.path.join(ROOT_DIR, "environment.ps1"), "a") as myfile:
122123
if not ndk_only:
123124
myfile.write("$env:ANDROID_SDK_ROOT=\"" + ANDROID_SDK_ROOT + "\"\n")
125+
myfile.write("$env:ANDROID_HOME=\"" + ANDROID_SDK_ROOT + "\"\n")
124126
myfile.write("$env:ANDROID_NDK=\"" + ANDROID_NDK + "\"\n") # for lua binding generator
125127

126128
def main(ndk_only):

0 commit comments

Comments
 (0)