android-emulator-runner icon indicating copy to clipboard operation
android-emulator-runner copied to clipboard

"Cache not found for input keys: avd-29"

Open kirillzh opened this issue 3 years ago • 4 comments

AVD caching does not seem to work, getting Cache not found for input keys: avd-29 log and seeing AVD being recreated on each run. Workflow setup:

- name: AVD cache
  uses: actions/cache@v3
  id: avd-cache
  with:
    path: |
      ~/.android/avd/*
      ~/.android/adb*
    key: avd-29

- 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: 29
    force-avd-creation: false
    emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
    disable-animations: false
    script: echo "Generated AVD snapshot for caching."

- name: instrumented tests
  uses: reactivecircus/android-emulator-runner@v2
  with:
    api-level: 29
    working-directory: ./app
    force-avd-creation: false
    emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
    disable-animations: true
    target: google_apis
    script: bin/gradle connectedCheck

kirillzh avatar Feb 06 '23 18:02 kirillzh

I am having the same issue as well

kikin81 avatar Feb 10 '23 03:02 kikin81

See the same, avd cache is not working

ipopov-belkacar avatar Mar 02 '23 07:03 ipopov-belkacar

Did your job succeeded? Because it seems like the cache is only saved if a job is successful.

OscarCreator avatar Mar 05 '23 12:03 OscarCreator

@OscarCreator Thats not the case. My Job succeeded but cache not found

WasifIsrar avatar Dec 08 '23 13:12 WasifIsrar