Skip to content

Commit

Permalink
test(ci): enable hardware acceleration for emulator
Browse files Browse the repository at this point in the history
on ubuntu-latest you must have /dev/kvm permissions for the runner
user in order for hardware acceleration in the emulator to work
  • Loading branch information
mikehardy committed Jun 26, 2024
1 parent ada4ce6 commit fca8a81
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ jobs:
if: matrix.job == 'instrumentation'
run: ./gradlew :sample:minifyExternalStagingWithR8 validateL8 --stacktrace

- name: Enable KVM group perms
if: matrix.job == 'instrumentation' && matrix.os == 'ubuntu-latest'
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
# TODO AVD caching disabled due to https://github.com/ReactiveCircus/android-emulator-runner/issues/278
# - name: AVD cache
# uses: actions/cache@v3
Expand Down

0 comments on commit fca8a81

Please sign in to comment.