File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -210,8 +210,19 @@ jobs:
210210 with :
211211 target : aarch64-linux-android
212212
213+ - name : Setup Android NDK
214+ id : setup-ndk
215+ uses : nttld/setup-ndk@v1
216+ with :
217+ ndk-version : r27
218+ add-to-path : true
219+
213220 - name : Check compilation for android
214221 run : cargo check --target aarch64-linux-android ${{ env.CARGO_ARGS_NO_SSL }}
222+ env :
223+ CC_aarch64_linux_android : ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang
224+ AR_aarch64_linux_android : ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar
225+ CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER : ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang
215226
216227 - uses : dtolnay/rust-toolchain@stable
217228 with :
You can’t perform that action at this time.
0 commit comments