Only build arm64-v8a in CI

This commit is contained in:
Neuman Vong 2024-01-15 18:56:30 +11:00
parent 9a049fc771
commit 943bba2e5d
2 changed files with 9 additions and 1 deletions

View file

@ -536,7 +536,7 @@ jobs:
- name: Build - name: Build
run: | run: |
cd examples/llama.android cd examples/llama.android
./gradlew build --no-daemon ./gradlew build --no-daemon -Ponly-arm64-v8a
# freeBSD-latest: # freeBSD-latest:
# runs-on: macos-12 # runs-on: macos-12

View file

@ -20,6 +20,14 @@ android {
vectorDrawables { vectorDrawables {
useSupportLibrary = true useSupportLibrary = true
} }
ndk {
// Workaround for https://github.com/llvm/llvm-project/issues/65820
// affecting armeabi-v7a. Build for arm64-v8a only when invoked
// with -Ponly-arm64-v8a (e.g. ./gradlew build -Ponly-arm64-v8a).
if (project.hasProperty("only-arm64-v8a")) {
abiFilters += listOf("arm64-v8a")
}
}
externalNativeBuild { externalNativeBuild {
cmake { cmake {
cppFlags += listOf() cppFlags += listOf()