Skip to content

Commit 176f3ec

Browse files
Update yml
1 parent 0115ddc commit 176f3ec

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/android.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
action: build
7979
test:
8080
if: ${{ startsWith(github.ref, 'refs/tags/') != true && github.event.inputs.SNAPSHOT != 'true' }}
81-
runs-on: macos-latest
81+
runs-on: ubuntu-latest
8282
strategy:
8383
fail-fast: false
8484
matrix:
@@ -90,6 +90,12 @@ jobs:
9090
uses: actions/setup-java@v1
9191
with:
9292
java-version: 17
93+
- name: Enable KVM
94+
run: |
95+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
96+
sudo udevadm control --reload-rules
97+
sudo udevadm trigger --name-match=kvm
98+
9399
- name: Grant execute permission for gradlew
94100
run: chmod +x gradlew
95101
- name: Gradle cache
@@ -114,9 +120,9 @@ jobs:
114120
uses: reactivecircus/android-emulator-runner@v2
115121
with:
116122
api-level: ${{ matrix.api-level }}
117-
arch: arm64-v8a # Specify ARM architecture
118-
force-avd-creation: true # Force AVD creation to ensure it's ARM-based
119-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -accel off # Disable hardware acceleration
123+
# arch: arm64-v8a # Specify ARM architecture
124+
force-avd-creation: false
125+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
120126
disable-animations: false
121127
script: echo "Generated AVD snapshot for caching."
122128

0 commit comments

Comments
 (0)