Skip to content

Commit b63daf9

Browse files
authored
Merge pull request #106 from winnerspiros/copilot/fix-android-build-errors
Fix sdkmanager path in Android build workflow
2 parents 0e4787a + 65258db commit b63daf9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ jobs:
3535
- name: Ensure Android NDK and CMake are available
3636
run: |
3737
# The ubuntu-latest runner has $ANDROID_HOME pre-installed.
38+
# sdkmanager is not on PATH; use the full path.
39+
SDKMANAGER="$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager"
3840
# Install latest stable NDK (r29) + CMake.
39-
yes | sdkmanager --licenses > /dev/null 2>&1 || true
40-
sdkmanager --install "ndk;29.0.14206865" "cmake;3.22.1" > /dev/null 2>&1
41+
yes | "$SDKMANAGER" --licenses > /dev/null 2>&1 || true
42+
"$SDKMANAGER" --install "ndk;29.0.14206865" "cmake;3.22.1" > /dev/null 2>&1
4143
4244
- name: Build native library (libosu_native.so)
4345
run: |

0 commit comments

Comments
 (0)