Skip to content

Commit

Permalink
Enable KVM and update emulator api level
Browse files Browse the repository at this point in the history
  • Loading branch information
overpas committed Sep 22, 2024
1 parent 4389a68 commit 9f6ea1f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ui-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
- uses: actions/setup-java@v4
Expand All @@ -29,12 +34,12 @@ jobs:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-29
key: avd-33
- 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: 29
api-level: 33
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
Expand Down

0 comments on commit 9f6ea1f

Please sign in to comment.