Skip to content

Commit

Permalink
ci: create cacheable avd snapshot. Increase disk size to 4g
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Jan 23, 2024
1 parent bed3638 commit 0b85e52
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,22 @@ jobs:
~/.android/avd/*
~/.android/adb*
key: avd
- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
working-directory: .
api-level: 31
profile: Nexus 6
arch: x86_64
force-avd-creation: false
avd-name: macOS-avd-x86_64-31
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
disk-size: 4096M
script: echo "Generated AVD snapshot for caching."
- name: Functional Tests
uses: reactivecircus/android-emulator-runner@v2.29.0
uses: reactivecircus/android-emulator-runner@v2
with:
working-directory: .
api-level: 31
Expand All @@ -81,6 +95,7 @@ jobs:
avd-name: macOS-avd-x86_64-31
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
disk-size: 4096M
script: ./gradlew :parsely:connectedDebugAndroidTest
- name: Publish build artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 0b85e52

Please sign in to comment.