Skip to content

Commit

Permalink
update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gyund committed Apr 13, 2024
1 parent d90388b commit e7a84af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ jobs:
matrix:
api-level: [27, 34]
target: ["google_apis"]
arch: ["x86_64"]
steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -156,14 +157,15 @@ jobs:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}-${{matrix.google_apis}}
key: avd-${{ matrix.api-level }}-${{matrix.google_apis}}-${{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
disable-animations: false
Expand All @@ -174,6 +176,7 @@ jobs:
with:
api-level: ${{ matrix.api-level }}
target: ${{matrix.target}}
arch: ${{matrix.arch}}
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
Expand Down

0 comments on commit e7a84af

Please sign in to comment.