Skip to content

Commit 3c0f806

Browse files
author
Daniil Karpenko
committed
Speed up test APK builds to arm64
1 parent cc6120a commit 3c0f806

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/build-mermaid-apk.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
env:
3939
ANDROID_HOME: ${{ env.ANDROID_SDK_ROOT }}
4040
ANDROID_SDK_ROOT: ${{ env.ANDROID_SDK_ROOT }}
41+
TELEGRAM_TEST_ABI_ONLY_ARM64: "1"
4142
run: |
4243
chmod +x gradlew
4344
./gradlew --stacktrace :TMessagesProj_AppStandalone:assembleAfatDebug

TMessagesProj_AppStandalone/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
apply plugin: 'com.android.application'
22

3+
def testArm64Only = "1".equals(System.getenv("TELEGRAM_TEST_ABI_ONLY_ARM64"))
4+
35
repositories {
46
mavenCentral()
57
google()
@@ -94,7 +96,11 @@ android {
9496
productFlavors {
9597
afat {
9698
ndk {
97-
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
99+
if (testArm64Only) {
100+
abiFilters "arm64-v8a"
101+
} else {
102+
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
103+
}
98104
}
99105
ext {
100106
abiVersionCode = 9

0 commit comments

Comments
 (0)