ci: fix self testing for Android platforms (#1248)
This commit is contained in:
parent
bb46793837
commit
037d960607
2 changed files with 5 additions and 5 deletions
6
.github/workflows/android-armv7.yml
vendored
6
.github/workflows/android-armv7.yml
vendored
|
@ -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
|
||||
|
|
4
.github/workflows/android.yml
vendored
4
.github/workflows/android.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue