Skip to content

Commit

Permalink
ci: switch API 26 and 29 tests back to macos-latest
Browse files Browse the repository at this point in the history
The emulator hangs forever on `ubuntu-latest`
  • Loading branch information
ashishb committed Jul 21, 2024
1 parent 3610a02 commit 15ee820
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/adbe-unittests-api26.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ concurrency:

jobs:
testOnApi26:
runs-on: ubuntu-latest
# This hangs on ubuntu-latest
# Ref: https://github.com/ashishb/adb-enhanced/pull/239
# Ref: https://github.com/ReactiveCircus/android-emulator-runner/issues/385
runs-on: macos-latest
timeout-minutes: 15

strategy:
Expand All @@ -26,13 +29,6 @@ jobs:
- name: checkout
uses: actions/checkout@v4

# Ref: https://github.com/ReactiveCircus/android-emulator-runner?tab=readme-ov-file#running-hardware-accelerated-emulators-on-linux-runners
- 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: Gradle cache
uses: gradle/gradle-build-action@v3

Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/adbe-unittests-api29.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ concurrency:

jobs:
testOnApi29:
runs-on: ubuntu-latest
# This hangs on ubuntu-latest
# Ref: https://github.com/ashishb/adb-enhanced/pull/239
# Ref: https://github.com/ReactiveCircus/android-emulator-runner/issues/385
runs-on: macos-latest
timeout-minutes: 15

strategy:
Expand All @@ -26,13 +29,6 @@ jobs:
- name: checkout
uses: actions/checkout@v4

# Ref: https://github.com/ReactiveCircus/android-emulator-runner?tab=readme-ov-file#running-hardware-accelerated-emulators-on-linux-runners
- 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: Gradle cache
uses: gradle/gradle-build-action@v3

Expand Down

0 comments on commit 15ee820

Please sign in to comment.