Skip to content

Commit 157c03f

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
Fix CI NDK install path to use runner's ANDROID_HOME
The runner has ANDROID_HOME=/usr/local/lib/android/sdk pre-set, but the install step was writing to $HOME/Android/Sdk — a different path. The Makefile picks up the runner's ANDROID_HOME, so it found the pre-installed NDK r27 instead of the downloaded r28.
1 parent 573dd87 commit 157c03f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646

4747
- name: Install Android NDK
4848
run: |
49-
mkdir -p "$HOME/Android/Sdk/ndk"
49+
mkdir -p "$ANDROID_HOME/ndk"
5050
wget -q "https://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_VERSION}-linux.zip" -O /tmp/ndk.zip
51-
unzip -q /tmp/ndk.zip -d "$HOME/Android/Sdk/ndk/"
52-
mv "$HOME/Android/Sdk/ndk/android-ndk-${ANDROID_NDK_VERSION}" "$HOME/Android/Sdk/ndk/${ANDROID_NDK_DIR_NAME}"
51+
unzip -q /tmp/ndk.zip -d "$ANDROID_HOME/ndk/"
52+
mv "$ANDROID_HOME/ndk/android-ndk-${ANDROID_NDK_VERSION}" "$ANDROID_HOME/ndk/${ANDROID_NDK_DIR_NAME}"
5353
5454
- name: Cross-compile examples for Android arm64
5555
run: make check-examples

0 commit comments

Comments
 (0)