Skip to content

Commit 88a71e6

Browse files
committed
[ci] Attempt at KVM setup on default ubuntu runner
1 parent 0adcd06 commit 88a71e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ jobs:
6767
echo "space.username=" >> local.properties
6868
echo "space.password=" >> local.properties
6969
70+
- name: Enable KVM group perms
71+
if: ${{ runner.os == 'Linux' }} # needed for Android emulator
72+
# See https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/
73+
run: |
74+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
75+
sudo udevadm control --reload-rules
76+
sudo udevadm trigger --name-match=kvm
77+
7078
- name: Run mobile tests
7179
run: ./amper test -m amper-mobile-test ${{ matrix.testArgs }}
7280

0 commit comments

Comments
 (0)