Skip to content

Commit cc787b0

Browse files
committed
Reorganize CI for Android
1 parent 4a8b9d1 commit cc787b0

1 file changed

Lines changed: 6 additions & 28 deletions

File tree

.github/workflows/CI.yml

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -64,32 +64,10 @@ jobs:
6464
runs-on: ${{ matrix.host }}
6565
strategy:
6666
matrix:
67-
ndk-arch: [x86_64]
68-
arch: [x86_64]
69-
api-level: [21]
70-
target: [default]
67+
ndk-arch: [x86_64, arm64-v8a, x86, armeabi-v7a]
7168
host: [ubuntu-24.04]
72-
python-version: [3.10.17]
73-
include:
74-
- ndk-arch: arm64-v8a
75-
arch: x86_64
76-
api-level: 30
77-
target: google_apis
78-
host: ubuntu-24.04
79-
python-version: 3.10.17
80-
- ndk-arch: x86
81-
arch: x86
82-
api-level: 21
83-
target: default
84-
host: ubuntu-24.04
85-
python-version: 3.10.17
86-
- ndk-arch: armeabi-v7a
87-
arch: x86_64
88-
api-level: 30
89-
target: google_apis
90-
host: ubuntu-24.04
91-
python-version: 3.10.17
92-
name: python-android-${{ matrix.python-version }}-${{ matrix.host }}
69+
python-version: [3.8.20, 3.9.22, 3.10.17]
70+
name: python-android-${{ matrix.ndk-arch }}-${{ matrix.python-version }}-${{ matrix.host }}
9371
steps:
9472
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9573
with:
@@ -107,9 +85,9 @@ jobs:
10785
- name: run action
10886
uses: reactivecircus/android-emulator-runner@v2
10987
with:
110-
api-level: ${{ matrix.api-level }}
111-
target: ${{ matrix.target }}
112-
arch: ${{ matrix.arch }}
88+
api-level: ${{ startsWith(matrix.ndk-arch, 'x86') && 21 || 30 }}
89+
target: ${{ startsWith(matrix.ndk-arch, 'x86') && 'default' || 'google_apis' }}
90+
arch: ${{ matrix.ndk-arch == 'x86' && 'x86' || 'x86_64' }}
11391
profile: Galaxy Nexus
11492
cores: 2
11593
ram-size: 2048M

0 commit comments

Comments
 (0)