Skip to content

Commit

Permalink
ci: add KVM on a missing test (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb committed Apr 7, 2024
1 parent 93a4581 commit c0fbb88
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/adbe-unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ jobs:
- name: checkout
uses: actions/checkout@v4

# Ref: https://github.com/ReactiveCircus/android-emulator-runner?tab=readme-ov-file#running-hardware-accelerated-emulators-on-linux-runners
- name: Enable KVM
# For some weird reason, if KVM is enabled then emulator times out on API 26!
# Ref: https://github.com/ashishb/adb-enhanced/actions/runs/8591215419/job/23539714583?pr=242
if: matrix.api-level != 26
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/gradle-build-action@v3

Expand Down

0 comments on commit c0fbb88

Please sign in to comment.