Skip to content

Commit a9e40ef

Browse files
committed
add kvm support
1 parent d8ae284 commit a9e40ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/android.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ jobs:
1212
steps:
1313
- name: Checkout the code
1414
uses: actions/[email protected]
15+
- name: Enable KVM
16+
run: |
17+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
18+
sudo udevadm control --reload-rules
19+
sudo udevadm trigger --name-match=kvm
1520
- name: Run Unit test
16-
uses: reactivecircus/android-emulator-runner@v2.32.0
21+
uses: reactivecircus/android-emulator-runner@v2.35.0
1722
with:
1823
api-level: 34
1924
arch: arm64-v8a
25+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
2026
script: ./gradlew createDebugCoverageReport
2127
- name: Lint
2228
run: ./gradlew lint

0 commit comments

Comments
 (0)