Skip to content

Commit 7ff7556

Browse files
committed
avds
1 parent 3f43fb7 commit 7ff7556

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/android.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,17 @@ jobs:
8282
fail-fast: false
8383
matrix:
8484
# 21 is too old (not properly supported by github)
85-
# mokito version is not working ing 30+
86-
api-level: [25, 27, 29]
85+
# mockito version is not working in 30+
86+
include:
87+
- api-level: 25
88+
arch: x86
89+
target: google_apis
90+
- api-level: 27
91+
arch: x86
92+
target: google_apis
93+
- api-level: 29
94+
arch: x86_64
95+
target: default
8796
steps:
8897
- name: checkout
8998
uses: actions/checkout@v4
@@ -115,15 +124,15 @@ jobs:
115124
~/.android/avd/*
116125
~/.android/adb*
117126
~/.android/debug.keystore
118-
key: avd-${{ matrix.api-level }}
127+
key: avd-${{ matrix.api-level }}-${{ matrix.arch }}-${{ matrix.target }}
119128

120129
- name: create AVD and generate snapshot for caching
121130
if: steps.avd-cache.outputs.cache-hit != 'true'
122131
uses: reactivecircus/android-emulator-runner@v2
123132
with:
124133
api-level: ${{ matrix.api-level }}
125-
arch: x86_64
126-
target: google_apis
134+
arch: ${{ matrix.arch }}
135+
target: ${{ matrix.target }}
127136
force-avd-creation: false
128137
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
129138
disable-animations: false
@@ -133,8 +142,8 @@ jobs:
133142
uses: reactivecircus/android-emulator-runner@v2
134143
with:
135144
api-level: ${{ matrix.api-level }}
136-
arch: x86_64
137-
target: google_apis
145+
arch: ${{ matrix.arch }}
146+
target: ${{ matrix.target }}
138147
force-avd-creation: false
139148
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
140149
disable-animations: true

0 commit comments

Comments
 (0)