Skip to content

Commit

Permalink
Fix Emulators in CI broken by MacOS switching to ARM. Back to Ubuntu,…
Browse files Browse the repository at this point in the history
… now faster with KVM
  • Loading branch information
pyricau committed Apr 30, 2024
1 parent 5e37dd6 commit 9fd3a13
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: ./gradlew build --stacktrace

instrumentation-tests:
runs-on: macos-latest
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
# Allow tests to continue on other devices if they fail on one device.
Expand Down Expand Up @@ -55,14 +55,20 @@ jobs:
# target: aosp_atd
# channel: canary
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- 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
ls /dev/kvm
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- uses: gradle/gradle-build-action@v2
- name: AVD cache
uses: actions/cache@v3
uses: actions/cache@v4
id: avd-cache
with:
path: |
Expand All @@ -84,6 +90,7 @@ jobs:
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot-save
Expand Down

0 comments on commit 9fd3a13

Please sign in to comment.