Skip to content

Commit

Permalink
Enable KVM on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
phicdy committed Jul 7, 2024
1 parent 8440833 commit 8553211
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/androidTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
android_test:
runs-on: macos-latest
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
Expand Down Expand Up @@ -38,6 +38,11 @@ jobs:
env:
ADMOB_ID_MYCURATION: ${{ secrets.ADMOB_ID_MYCURATION }}
run: touch ~/.gradle/gradle.properties && echo ADMOB_ID_MYCURATION=$ADMOB_ID_MYCURATION > ~/.gradle/gradle.properties
- 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: Build AndroidTest apps
run: ./gradlew packageDebug packageDebugAndroidTest --daemon
- name: Run androidTest
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/task_for_library_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
path: depend.txt

android_test:
runs-on: macos-latest
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
Expand Down Expand Up @@ -61,6 +61,11 @@ jobs:
env:
ADMOB_ID_MYCURATION: ${{ secrets.ADMOB_ID_MYCURATION }}
run: touch ~/.gradle/gradle.properties && echo ADMOB_ID_MYCURATION=$ADMOB_ID_MYCURATION > ~/.gradle/gradle.properties
- 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: Build AndroidTest apps
run: ./gradlew packageDebug packageDebugAndroidTest --daemon
- name: Run androidTest
Expand Down

0 comments on commit 8553211

Please sign in to comment.