Skip to content

Commit

Permalink
remove avd cache
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniosb committed Feb 19, 2024
1 parent 39b9cc5 commit 963060d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,6 @@ runs:
- name: Gradle cache
uses: gradle/gradle-build-action@v2

- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-29-${{ runner.os }}
restore-keys: avd-29-

- name: create AVD and generate snapshot for caching
if: ${{ steps.avd-cache.outputs.cache-hit != 'true' && inputs.instrumented_test == '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: Run Unit tests
if: ${{ inputs.unit_test == 'true' }}
run: ./gradlew test
Expand All @@ -73,7 +53,6 @@ runs:
if: ${{ inputs.instrumented_test == 'true' }}
continue-on-error: true
with:
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
api-level: 29
Expand Down

0 comments on commit 963060d

Please sign in to comment.