Skip to content

Commit c8ee8e6

Browse files
committed
Use ubuntu-latest
1 parent ecbf71c commit c8ee8e6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/AdvancedStateAndSideEffectsCodelab.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,21 @@ jobs:
6161

6262
test:
6363
needs: build
64-
runs-on: macos-14
64+
runs-on: ubuntu-latest
6565
timeout-minutes: 30
6666
strategy:
6767
matrix:
6868
api-level: [26, 29]
6969

7070
steps:
71+
# https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners
72+
- name: Enable KVM group perms
73+
run: |
74+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
75+
sudo udevadm control --reload-rules
76+
sudo udevadm trigger --name-match=kvm
77+
ls /dev/kvm
78+
7179
- name: Checkout
7280
uses: actions/checkout@v4
7381

@@ -96,7 +104,7 @@ jobs:
96104
with:
97105
api-level: ${{ matrix.api-level }}
98106
target: google_apis
99-
arch: arm64-v8a
107+
arch: x86
100108
disable-animations: true
101109
script: ./gradlew connectedCheck --stacktrace
102110
working-directory: ${{ env.SAMPLE_PATH }}

0 commit comments

Comments
 (0)