Skip to content

Commit

Permalink
Switched to Linux for better emulator performance
Browse files Browse the repository at this point in the history
Hardware acceleration is now possible with Linux runners on GitHub and
have much better performance so no need for macOS anymore.
  • Loading branch information
penguin359 committed Aug 6, 2024
1 parent b554f97 commit 57a544d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
compile:
runs-on: macos-latest
runs-on: ubuntu-latest
name: "Compile all sources"

steps:
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
unit-test:
name: "Run all unit tests"
needs: compile
runs-on: macos-latest
runs-on: ubuntu-latest

steps:
- name: Checkout project
Expand Down Expand Up @@ -87,7 +87,8 @@ jobs:
name: "Testing on API ${{ matrix.api-level }} for ${{ matrix.target }}"
needs: compile
# macOS provided hardware-accelerated emulator
runs-on: macos-latest
# but now so does Linux
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand All @@ -104,6 +105,12 @@ jobs:
fetch-depth: 0
submodules: recursive

- 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 11
uses: actions/setup-java@v4
with:
Expand Down

0 comments on commit 57a544d

Please sign in to comment.