Add heap-size to emulator. Also, set to not force create the avd when running the test cases.

This commit is contained in:
MohitMaliFtechiz 2024-04-15 15:52:48 +05:30
parent fa5e1cfc82
commit d0cf899009

View File

@ -53,7 +53,7 @@ jobs:
key: avd-${{ matrix.api-level }} key: avd-${{ matrix.api-level }}
- name: Create AVD and generate snapshot for caching - name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true' # if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2 uses: reactivecircus/android-emulator-runner@v2
with: with:
api-level: ${{ matrix.api-level }} api-level: ${{ matrix.api-level }}
@ -82,6 +82,7 @@ jobs:
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
ram-size: 4096M ram-size: 4096M
cores: 4 cores: 4
force-avd-creation: false
sdcard-path-or-size: 2048M sdcard-path-or-size: 2048M
disable-animations: true disable-animations: true
heap-size: ${{ matrix.api-level != 24 && '512M' || '' }} heap-size: ${{ matrix.api-level != 24 && '512M' || '' }}