Skip to content

Commit 0512a74

Browse files
committed
Enable acceleration for emulator
1 parent 654fdae commit 0512a74

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,27 @@ jobs:
1919
NDK_VERSION: 'r27d'
2020
EMULATOR_ARCH: 'x86_64'
2121
EMULATOR_ARCH_TRIPLE: 'x86_64'
22-
EMULATOR_GPU: 'swiftshader_indirect'
2322

2423
- name: 'Ubuntu X64 API 28'
2524
os: 'ubuntu-latest'
2625
ANDROID_API: 28
2726
NDK_VERSION: 'r28c'
2827
EMULATOR_ARCH: 'x86_64'
2928
EMULATOR_ARCH_TRIPLE: 'x86_64'
30-
EMULATOR_GPU: 'swiftshader_indirect'
3129

3230
- name: 'Ubuntu X64 API 35'
3331
os: 'ubuntu-latest'
3432
ANDROID_API: 35
3533
NDK_VERSION: 'r29'
3634
EMULATOR_ARCH: 'x86_64'
3735
EMULATOR_ARCH_TRIPLE: 'x86_64'
38-
EMULATOR_GPU: 'swiftshader_indirect'
3936

4037
# Android SDK for Linux is only x86_64
4138
#- name: 'Ubuntu ARM API 28'
4239
# os: 'ubuntu-24.04-arm'
4340
# ANDROID_API: 28
4441
# EMULATOR_ARCH: 'arm64-v8a'
4542
# EMULATOR_ARCH_TRIPLE: 'aarch64'
46-
# EMULATOR_GPU: 'swiftshader_indirect'
4743

4844
# Cannot test on ARM macOS because Android emulator required nested
4945
# virtualization
@@ -52,14 +48,12 @@ jobs:
5248
# ANDROID_API: 28
5349
# EMULATOR_ARCH: 'arm64-v8a'
5450
# EMULATOR_ARCH_TRIPLE: 'aarch64'
55-
# EMULATOR_GPU: 'swiftshader_indirect'
5651

5752
runs-on: ${{ matrix.os }}
5853
env:
5954
ANDROID_API: ${{ matrix.ANDROID_API }}
6055
ANDROID_EMULATOR_ARCH: ${{ matrix.EMULATOR_ARCH }}
6156
ANDROID_EMULATOR_ARCH_TRIPLE: ${{ matrix.EMULATOR_ARCH_TRIPLE }}
62-
ANDROID_EMULATOR_GPU: ${{ matrix.EMULATOR_GPU }}
6357
ANDROID_TARGET: 'default'
6458
#ANDROID_BUILD_TOOLS_VERSION: 36.0.0
6559
ANDROID_BUILD_TOOLS_VERSION: 'latest'
@@ -195,7 +189,7 @@ jobs:
195189
# run: emulator -list-avds
196190

197191
- name: Android - Boot
198-
run: nohup emulator -memory 4096 -avd "${ANDROID_EMULATOR_NAME}" -wipe-data -no-window -accel off -no-accel -gpu "${ANDROID_EMULATOR_GPU}" -no-snapshot -noaudio -no-boot-anim 2>&1 > emulator.log &
192+
run: nohup emulator -memory 4096 -avd "${ANDROID_EMULATOR_NAME}" -wipe-data -no-window -no-snapshot -noaudio -no-boot-anim 2>&1 > emulator.log &
199193

200194
- name: ADB Wait For Device
201195
run: adb wait-for-any-device

0 commit comments

Comments
 (0)