From f40b3679c34f07ac8dc1410aa2ef5e2ca1bf5b29 Mon Sep 17 00:00:00 2001 From: MohitMaliFtechiz Date: Fri, 16 Aug 2024 14:32:08 +0530 Subject: [PATCH] Removed the caching of emulator from CI. --- .github/workflows/ci.yml | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2acb6c86d..a1ecdf761 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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