File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 8282 echo "OPENSSL_INCLUDE_DIR=$HOME/openssl-${{ env.OPENSSL_VERSION }}/android-build/include" >> $GITHUB_ENV
8383 echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
8484
85+ # Explicitly configure the toolchain for Cargo
86+ API=24
87+ TOOLCHAIN_DIR="${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin"
88+
89+ # Configure for aarch64-linux-android
90+ echo "CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=$TOOLCHAIN_DIR/aarch64-linux-android$API-clang" >> $GITHUB_ENV
91+ echo "CC_aarch64_linux_android=$TOOLCHAIN_DIR/aarch64-linux-android$API-clang" >> $GITHUB_ENV
92+ echo "AR_aarch64_linux_android=$TOOLCHAIN_DIR/llvm-ar" >> $GITHUB_ENV
93+
94+ # Configure for x86_64-linux-android
95+ echo "CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER=$TOOLCHAIN_DIR/x86_64-linux-android$API-clang" >> $GITHUB_ENV
96+ echo "CC_x86_64_linux_android=$TOOLCHAIN_DIR/x86_64-linux-android$API-clang" >> $GITHUB_ENV
97+ echo "AR_x86_64_linux_android=$TOOLCHAIN_DIR/llvm-ar" >> $GITHUB_ENV
98+
8599 - name : Run Android Build Script
86100 run : bash ./scripts/android.build.sh
87101
You can’t perform that action at this time.
0 commit comments