1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-24 20:15:16 +01:00

Fix github worklow for Android tests (#11014)

- The github workflow fails when running android tests.
- The workflow is trying to launch an x86 emulator on aarch-64 (macos-latest) host.
- The macos-latest system seem to be used originally as it supports
  hardware acceleration.
- This is no longer recomended, and ubuntu-latest host can handle the
  same and be faster than macos-latest.

Doc: https://github.com/marketplace/actions/android-emulator-runner#running-hardware-accelerated-emulators-on-linux-runners
This commit is contained in:
Siddhesh Naik 2024-04-29 02:45:18 +05:30 committed by GitHub
parent 9e4ac2eacb
commit 879d7a24f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,8 +63,7 @@ jobs:
path: app/build/outputs/apk/debug/*.apk path: app/build/outputs/apk/debug/*.apk
test-android: test-android:
# macos has hardware acceleration. See android-emulator-runner action runs-on: ubuntu-latest
runs-on: macos-latest
timeout-minutes: 20 timeout-minutes: 20
strategy: strategy:
matrix: matrix:
@ -82,6 +81,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- 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: set up JDK 17 - name: set up JDK 17
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with: