ci: fix self testing for Android platforms (#1248)

This commit is contained in:
LongYinan 2022-07-27 15:25:28 +08:00 committed by GitHub
parent bb46793837
commit 037d960607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -24,7 +24,7 @@ jobs:
check-latest: true
- name: List NDK Home
run: ls -R "${ANDROID_NDK_HOME}"
run: ls -R "${ANDROID_NDK_LATEST_HOME}"
- name: Install
uses: actions-rs/toolchain@v1
@ -57,8 +57,8 @@ jobs:
- name: Cross build
run: |
export CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang"
export CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang"
yarn build:test:android:armv7
du -sh examples/napi/index.node
${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip examples/napi/index.node
${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip examples/napi/index.node
du -sh examples/napi/index.node

View file

@ -24,7 +24,7 @@ jobs:
check-latest: true
- name: List NDK Home
run: ls -R "${ANDROID_NDK_HOME}"
run: ls -R "${ANDROID_NDK_LATEST_HOME}"
- name: Install
uses: actions-rs/toolchain@v1
@ -57,5 +57,5 @@ jobs:
- name: Cross build native tests
run: |
export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang"
export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang"
yarn build:test:android