Do not cache AVD (#6626)

This causes tons of hard-to-reproduce bugs on CI.
This commit is contained in:
ByteHamster 2023-09-08 21:09:07 +02:00 committed by GitHub
parent 8ebf153970
commit b7491e5e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 19 deletions

View File

@ -127,25 +127,6 @@ jobs:
key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Build with Gradle
run: ./gradlew assemblePlayDebugAndroidTest
- name: Cache AVD
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ hashFiles('.github/workflows/*') }}
- 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: ${{ env.api-level }}
target: aosp_atd
channel: canary
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: echo "Generated AVD snapshot for caching."
- name: Android Emulator test
uses: reactivecircus/android-emulator-runner@v2
with: