Skip to content

Commit 65258db

Browse files
Copilotwinnerspiros
andcommitted
Fix Android build: use full path to sdkmanager in release.yml
The sdkmanager binary is not in PATH on ubuntu-latest GitHub runners, causing exit code 127 (command not found). Use the full path at $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager instead. Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/b69c2ac9-3cf1-4e96-81e2-60ae24603d66 Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent de7855f commit 65258db

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)