Skip to content

Commit

Permalink
Enable KVM on the Linux platform (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
maroontress-tomohisa authored Jan 20, 2024
1 parent cd2174e commit 6c492f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ jobs:
runs-on: ${{matrix.os}}

steps:
# https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/
# https://github.blog/2024-01-17-github-hosted-runners-double-the-power-for-open-source/
- name: Enable KVM group perms
id: enable_kvm
if: runner.os == 'Linux'
continue-on-error: true
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
- uses: actions/checkout@v3
with:
submodules: true
Expand Down

0 comments on commit 6c492f0

Please sign in to comment.