Skip to content

Commit

Permalink
Trying to cache avd
Browse files Browse the repository at this point in the history
  • Loading branch information
alorma committed Oct 23, 2023
1 parent 6872543 commit 99fd38e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
strategy:
matrix:
api-level: [ 26, 31 ]
target: [default]
arch: [x86_64]
timeout-minutes: 60

Expand Down Expand Up @@ -63,13 +64,14 @@ jobs:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
key: avd-${{ matrix.api-level }}-${{ matrix.target }}-${{ matrix.arch }}

- 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: ${{ matrix.target }}
arch: ${{ matrix.arch }}
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
Expand Down

0 comments on commit 99fd38e

Please sign in to comment.