Skip to content

Commit 9cb1d74

Browse files
azhirnovTheMostDiligent
authored andcommitted
CI: separate build for arm32 and arm64
1 parent 078b50d commit 9cb1d74

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

.github/workflows/android.yml

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Android
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
build-armeabi-v7a:
77
runs-on: ubuntu-latest
8-
name: Android
8+
name: Android ARM32
99

1010
steps:
1111
- name: Clone repository
@@ -20,13 +20,42 @@ jobs:
2020
./validate_format_linux.sh
2121
2222
- name: Set up Java 8
23-
if: success()
2423
uses: actions/setup-java@v1
2524
with:
2625
java-version: 8
2726

2827
- name: Build with Gradle
29-
if: success()
28+
env:
29+
ANDROID_ARCH: armeabi-v7a
30+
run: |
31+
cd ./BuildTools/Android
32+
chmod +x gradlew
33+
./gradlew buildDebug
34+
35+
build-arm64-v8a:
36+
runs-on: ubuntu-latest
37+
name: Android ARM64
38+
39+
steps:
40+
- name: Clone repository
41+
uses: actions/checkout@v2
42+
with:
43+
submodules: recursive
44+
45+
- name: Format validation
46+
shell: bash
47+
run: |
48+
cd $GITHUB_WORKSPACE/BuildTools/FormatValidation
49+
./validate_format_linux.sh
50+
51+
- name: Set up Java 8
52+
uses: actions/setup-java@v1
53+
with:
54+
java-version: 8
55+
56+
- name: Build with Gradle
57+
env:
58+
ANDROID_ARCH: arm64-v8a
3059
run: |
3160
cd ./BuildTools/Android
3261
chmod +x gradlew

BuildTools/Android/tests/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
minSdkVersion 21
1010

1111
ndk {
12-
abiFilters "armeabi-v7a", "arm64-v8a"
12+
abiFilters "$System.env.ANDROID_ARCH"
1313
}
1414
externalNativeBuild {
1515
cmake {

0 commit comments

Comments
 (0)