chore: install NDK r21 in runtime (#26916)

chore: install ndk 21
This commit is contained in:
Yihau Chen 2022-08-04 19:14:28 +08:00 committed by GitHub
parent b6ae6c1fe1
commit 6aaaf717a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -11,8 +11,6 @@ on:
env:
CARGO_TERM_COLOR: always
ANDROID_SDK_ROOT: /usr/local/lib/android/sdk
ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/21.4.7075529
jobs:
check_compilation:
@ -56,6 +54,13 @@ jobs:
- name: Install cargo-ndk
if: ${{ matrix.platform == 'android' }}
run: cargo install cargo-ndk
- name: Install NDK 21
if: ${{ matrix.platform == 'android' }}
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;21.4.7075529"
- uses: actions-rs/cargo@v1
if: ${{ matrix.platform == 'android' }}
with: