Skip to content

Commit

Permalink
Reduce Android disk cache size for instrumented tests (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
illarionov authored Aug 11, 2024
1 parent 4970a62 commit 050b6d0
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,29 @@ jobs:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-30
key: avd-34

- 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: 30
target: aosp_atd
arch: x86_64
api-level: 34
target: default
force-avd-creation: false
disk-size: 2G
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -wipe-data
script: echo "Generated AVD snapshot for caching."

- name: Run instrumented tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 30
target: aosp_atd
arch: x86_64
api-level: 34
target: default
force-avd-creation: false
disk-size: 2G
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: >
./gradlew uninstallAll &&
./gradlew -Pkotlin.daemon.jvmargs="${{ env.KOTLIN_DAEMON_JVMARGS }}" connectedCheck --scan --continue &&
Expand Down

0 comments on commit 050b6d0

Please sign in to comment.