Skip to content

Commit

Permalink
android: load kvm and emulator in test and not action
Browse files Browse the repository at this point in the history
  • Loading branch information
iwdgo committed Sep 16, 2024
1 parent 8b3d412 commit 380dd86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/android_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Load emulator and smoke test
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedCheck

- name: Build go from tip
uses: iwdgo/gotip-build@android
id: gotip
Expand Down
14 changes: 0 additions & 14 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,6 @@ runs:
cd go/src
./run.bash --no-rebuild
- name: Enable KVM group perms
shell: bash
if: ${{ inputs.test_build == 'true' && env.crosscompile == '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
- name: Load emulator and smoke test
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedCheck

- name: Test using QEMU
shell: bash
if: 'false'
Expand Down

0 comments on commit 380dd86

Please sign in to comment.