@@ -108,6 +108,28 @@ jobs:
108108 sudo udevadm control --reload-rules
109109 sudo udevadm trigger --name-match=kvm
110110
111+ - name : AVD cache
112+ uses : actions/cache@v4
113+ id : avd-cache
114+ with :
115+ path : |
116+ ~/.android/avd/*
117+ ~/.android/adb*
118+ key : avd-33-x86_64-pixel_6
119+
120+ - name : Create AVD and generate snapshot for caching
121+ if : steps.avd-cache.outputs.cache-hit != 'true'
122+ uses : reactivecircus/android-emulator-runner@v2
123+ with :
124+ profile : pixel_6
125+ api-level : 33
126+ arch : x86_64
127+ avd-name : Pixel_6
128+ force-avd-creation : false
129+ emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front none
130+ disable-animations : false
131+ script : echo "Generated AVD snapshot for caching."
132+
111133 - name : Download APK
112134 uses : actions/download-artifact@v4
113135 with :
@@ -149,7 +171,7 @@ jobs:
149171 arch : x86_64
150172 avd-name : Pixel_6
151173 force-avd-creation : false
152- emulator-options : -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-front none
174+ emulator-options : -no-snapshot-save -no- window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front none
153175 script : cd bitkit-e2e-tests && ./ci_run_android.sh --mochaOpts.grep "${{ matrix.scenario.grep }}"
154176 env :
155177 BACKEND : regtest
@@ -167,7 +189,7 @@ jobs:
167189 arch : x86_64
168190 avd-name : Pixel_6
169191 force-avd-creation : false
170- emulator-options : -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-front none
192+ emulator-options : -no-snapshot-save -no- window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front none
171193 script : cd bitkit-e2e-tests && ./ci_run_android.sh --mochaOpts.grep "${{ matrix.scenario.grep }}"
172194 env :
173195 BACKEND : regtest
@@ -184,7 +206,7 @@ jobs:
184206 arch : x86_64
185207 avd-name : Pixel_6
186208 force-avd-creation : false
187- emulator-options : -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-front none
209+ emulator-options : -no-snapshot-save -no- window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front none
188210 script : cd bitkit-e2e-tests && ./ci_run_android.sh --mochaOpts.grep "${{ matrix.scenario.grep }}"
189211 env :
190212 BACKEND : regtest
0 commit comments