feat(cli): strip android binary in CI

This commit is contained in:
LongYinan 2021-10-01 17:13:30 +08:00
parent 16aacd8eec
commit 1c9a307dc9
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -75,6 +75,7 @@ jobs:
build: | build: |
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_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang"
yarn build --target aarch64-linux-android yarn build --target aarch64-linux-android
\${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-strip *.node
- host: ubuntu-latest - host: ubuntu-latest
target: 'aarch64-unknown-linux-musl' target: 'aarch64-unknown-linux-musl'
downloadTarget: 'aarch64-unknown-linux-musl' downloadTarget: 'aarch64-unknown-linux-musl'