chore: set ndk21 as default (#25892)

This commit is contained in:
Yihau Chen 2022-06-10 13:53:58 +08:00 committed by GitHub
parent 033308c009
commit 72f7aaf954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,13 @@ jobs:
- name: Install cargo-ndk
if: ${{ matrix.platform == 'android' }}
run: cargo install cargo-ndk
- name: Set NDK 21 as default
if: ${{ matrix.platform == 'android' }}
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
ln -sfn $ANDROID_SDK_ROOT/ndk/21.4.7075529 $ANDROID_NDK_ROOT
- uses: actions-rs/cargo@v1
if: ${{ matrix.platform == 'android' }}
with: