Browse Source

Update 'android-studio/.github/workflows/main.yml'

天问 2 years ago
parent
commit
b3cb20db50
1 changed files with 6 additions and 0 deletions
  1. 6 0
      android-studio/.github/workflows/main.yml

+ 6 - 0
android-studio/.github/workflows/main.yml

@@ -37,6 +37,12 @@ jobs:
             restore-keys: |
               ${{ runner.os }}-gradle-
 
+      - name: Enable KVM group perms
+        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: Build Debug APK
         run: |
           chmod +x gradlew