Skip to content

Commit f81fd3d

Browse files
authored
Optimize Android emulator settings in CI workflow
Reduced API levels and memory allocation for the Android emulator in CI workflow.
1 parent ad687f0 commit f81fd3d

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/sormas_app_ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# (explanation here https://github.com/ReactiveCircus/android-emulator-runner/issues/46)
3333
# The memory footprint of newer android versions (>= 29) and the limitations of the GitHub provided machines
3434
# is usually resulting in timeout when starting the emulator
35-
api-level: [26, 27, 28]
35+
api-level: [28]
3636

3737
steps:
3838
- name: Enable KVM
@@ -111,11 +111,10 @@ jobs:
111111
with:
112112
api-level: ${{ matrix.api-level }}
113113
arch: x86_64
114-
# Could be decreased to 2048M
115-
ram-size: 4096M
114+
ram-size: 2048M
116115
heap-size: 512M
117116
force-avd-creation: false
118-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
117+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -memory 2048
119118
disable-animations: false
120119
script: echo "Generated AVD snapshot for caching."
121120

@@ -124,11 +123,10 @@ jobs:
124123
with:
125124
api-level: ${{ matrix.api-level }}
126125
arch: x86_64
127-
# Could be decreased to 2048M
128-
ram-size: 4096M
126+
ram-size: 2048M
129127
heap-size: 512M
130128
force-avd-creation: false
131-
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
129+
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -memory 2048
132130
disable-animations: true
133131
working-directory: ./sormas-app
134132
script: ./gradlew connectedAndroidTest

0 commit comments

Comments
 (0)