Removed the caching of emulator from CI.

This commit is contained in:
MohitMaliFtechiz 2024-08-16 14:32:08 +05:30 committed by Kelson
parent bcb4a46315
commit f40b3679c3

View File

@ -37,39 +37,6 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: default
arch: x86_64
profile: pixel_2
ram-size: 4096M
force-avd-creation: false
sdcard-path-or-size: 2048M
cores: 4
disable-animations: false
heap-size: 512M
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-boot-timeout: 1200
script: echo "Generated AVD snapshot for caching."
- name: create instrumentation coverage
uses: reactivecircus/android-emulator-runner@v2
env:
@ -79,10 +46,8 @@ jobs:
target: default
arch: x86_64
profile: pixel_2
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
ram-size: 4096M
cores: 4
force-avd-creation: false
sdcard-path-or-size: 2048M
disable-animations: true
heap-size: 512M
@ -98,10 +63,8 @@ jobs:
target: default
arch: x86_64
profile: pixel_2
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
ram-size: 4096M
cores: 4
force-avd-creation: false
sdcard-path-or-size: 2048M
disable-animations: true
emulator-boot-timeout: 1200