set ndk env variable (#5465)

# Objective

- Fixes #5463
- set ANDROID_NDK_ROOT
- GitHub recently updated their ubuntu container, removing some of the android environment variable: ca5d04c7da
- `cargo-apk` is not reading the new environment variable: 9a8be258a9/ndk-build/src/ndk.rs (L33-L38)
- this also means CI will now use the latest android NDK, I don't know if that's an issue
This commit is contained in:
François 2022-07-27 06:35:04 +00:00
parent 6a1ba9c456
commit 3561b38e4d

View file

@ -59,7 +59,7 @@ jobs:
run: cargo install --force cargo-apk
- name: Build APK
run: cargo apk build --example android_example
run: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME cargo apk build --example android_example
run-examples-on-windows-dx12:
runs-on: windows-latest