Skip to content

Commit 56b957e

Browse files
committed
fix: enable kvm
1 parent 6b5b494 commit 56b957e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/10-take-screenshot-android.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ jobs:
4949
~/.android/adb*
5050
key: avd-${{ env.API_LEVEL }}
5151

52+
- name: Enable KVM
53+
run: |
54+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | \
55+
sudo tee /etc/udev/rules.d/99-kvm4all.rules
56+
sudo udevadm control --reload-rules
57+
sudo udevadm trigger --name-match=kvm
58+
5259
- name: create AVD
5360
if: steps.avd-cache.outputs.cache-hit != 'true'
5461
uses: reactivecircus/android-emulator-runner@v2
@@ -58,7 +65,7 @@ jobs:
5865
target: google_apis
5966
cores: ${{ env.CORES }}
6067
force-avd-creation: false
61-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot
68+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
6269
disable-animations: false
6370
script: avdmanager list device
6471

0 commit comments

Comments
 (0)