Skip to content

Commit 4df5a89

Browse files
committed
Only build arm64-v8a in CI
1 parent a1ca405 commit 4df5a89

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ jobs:
536536
- name: Build
537537
run: |
538538
cd examples/llama.android
539-
./gradlew build --no-daemon
539+
./gradlew build --no-daemon -Ponly-arm64-v8a
540540
541541
# freeBSD-latest:
542542
# runs-on: macos-12

examples/llama.android/app/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ android {
2020
vectorDrawables {
2121
useSupportLibrary = true
2222
}
23+
ndk {
24+
// Workaround for https://github.com/llvm/llvm-project/issues/65820
25+
// affecting armeabi-v7a. Build for arm64-v8a only when invoked
26+
// with -Ponly-arm64-v8a (e.g. ./gradlew build -Ponly-arm64-v8a).
27+
if (project.hasProperty("only-arm64-v8a")) {
28+
abiFilters += listOf("arm64-v8a")
29+
}
30+
}
2331
externalNativeBuild {
2432
cmake {
2533
cppFlags += listOf()

0 commit comments

Comments
 (0)