ReactiveCircus/android-emulator-runner

Failed to open the device 'kvm': No such file or directory

antoniosb opened this issue · 2 comments

I'm following the README.md and using the action in my workflow as follows:

on:
  pull_request:
    types: [opened, synchronize]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v3

      - name: Enable KVM
        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: run tests
        uses: reactivecircus/android-emulator-runner@v2
        with:
          api-level: 29
          script: ./gradlew connectedCheck

Although, when I open/push to my repo, I receive the following error:

Failed to open the device 'kvm': No such file or directory
Error: Process completed with exit code 1.

The full output of the step is:

Run echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
  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
  shell: /usr/bin/bash -e {0}
KERNEL=="kvm", GROUP="kvm", MODE="0[6](https://github.com/betrybe/android-000-projeto-login-social-2024-01-23-17-25-28/actions/runs/7631892624/job/20791440958#step:3:7)66", OPTIONS+="static_node=kvm"
Failed to open the device 'kvm': No such file or directory
Error: Process completed with exit code 1.
image

Is your repo public or are you paying for larger runners? KVM is only available for free for public repos. See #46 (comment)

The repo is private 😓
Changing it to public and now the tests are being executed!

Thanks for the quick response and ref! 🤝