Skip to content

Commit d18035a

Browse files
committed
Update emulator testing
1 parent 0a127d3 commit d18035a

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
include:
1616
- name: 'macOS 15 X64 API 28'
1717
os: 'macos-15-intel'
18-
ANDROID_API: 35
18+
ANDROID_API: 28
1919
NDK_VERSION: 'r27d'
2020
EMULATOR_ARCH: 'x86_64'
2121
EMULATOR_ARCH_TRIPLE: 'x86_64'
2222

23-
#- name: 'Ubuntu X64 API 28'
24-
# os: 'ubuntu-latest'
25-
# ANDROID_API: 28
26-
# NDK_VERSION: 'r28c'
27-
# EMULATOR_ARCH: 'x86_64'
28-
# EMULATOR_ARCH_TRIPLE: 'x86_64'
23+
- name: 'Ubuntu X64 API 28'
24+
os: 'ubuntu-latest'
25+
ANDROID_API: 28
26+
NDK_VERSION: 'r28c'
27+
EMULATOR_ARCH: 'x86_64'
28+
EMULATOR_ARCH_TRIPLE: 'x86_64'
2929

3030
- name: 'Ubuntu X64 API 35'
3131
os: 'ubuntu-latest'
@@ -34,6 +34,13 @@ jobs:
3434
EMULATOR_ARCH: 'x86_64'
3535
EMULATOR_ARCH_TRIPLE: 'x86_64'
3636

37+
- name: 'macOS 15 X64 API 36'
38+
os: 'macos-15-intel'
39+
ANDROID_API: 36
40+
NDK_VERSION: 'r27d'
41+
EMULATOR_ARCH: 'x86_64'
42+
EMULATOR_ARCH_TRIPLE: 'x86_64'
43+
3744
# Android SDK for Linux is only x86_64
3845
#- name: 'Ubuntu ARM API 28'
3946
# os: 'ubuntu-24.04-arm'
@@ -98,12 +105,11 @@ jobs:
98105

99106
- name: Android Emulator - Create
100107
run: |
101-
which avdmanager
102108
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --list_installed
103-
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-${ANDROID_API};default;x86_64"
104-
echo "no" | avdmanager create avd -n testing -k "system-images;android-${ANDROID_API};default;x86_64" --device "${ANDROID_PROFILE}"
109+
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-${ANDROID_API};default;${EMULATOR_ARCH}"
110+
echo "no" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n "${ANDROID_EMULATOR_NAME}" -k "system-images;android-${ANDROID_API};default;${EMULATOR_ARCH}" --device "${ANDROID_PROFILE}"
105111
$ANDROID_HOME/emulator/emulator -list-avds
106-
nohup emulator -memory 4096 -avd testing -wipe-data -no-window -no-snapshot -noaudio -no-boot-anim 2>&1 > emulator.log &
112+
nohup $ANDROID_HOME/emulator/emulator -memory 4096 -avd "${ANDROID_EMULATOR_NAME}" -wipe-data -no-window -no-snapshot -noaudio -no-boot-anim 2>&1 > emulator.log &
107113
108114
#- name: Android - Find AVDs
109115
# run: find ~/ -type d -name '*.avd'

0 commit comments

Comments
 (0)