Skip to content

Commit

Permalink
ci: active kvm ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
ujizin committed Sep 21, 2024
1 parent 6a2882f commit 4a06c30
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/android_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
cache: 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: Cache Gradle and wrapper
uses: actions/cache@v4
with:
Expand All @@ -45,7 +52,7 @@ jobs:
- name: Run unit test
run: ./gradlew clean test

- name: run android tests
- name: Run android tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 33
Expand Down

0 comments on commit 4a06c30

Please sign in to comment.