Skip to content

Commit 84162ec

Browse files
committed
test(android, ci): unpin emulator and install host dependencies
Remove the emulator version pin and install Android-recommended host packages for standard (non-headless) emulator launch on ubuntu-latest.
1 parent 4745955 commit 84162ec

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/tests_e2e_android.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,17 @@ jobs:
122122
sudo udevadm control --reload-rules
123123
sudo udevadm trigger --name-match=kvm
124124
125+
- name: Install emulator host dependencies
126+
# Newer emulator builds dlopen host libs on Linux; package list from Android emulator
127+
# container scripts (Ubuntu 24.04 noble package names on ubuntu-latest):
128+
# https://github.com/jpcottin/android-emulator-container-scripts/blob/0ec0fd00ff51aa09f83b20809f842b2c45293d99/emu/templates/Dockerfile.emulator#L30-L36
129+
run: |
130+
sudo apt-get update
131+
sudo apt-get install -y --no-install-recommends \
132+
libdbus-1-3 libfontconfig1 libgcc-s1 libgl1 libncurses6 libnss3 libpulse0 \
133+
libx11-6 libx11-xcb1 libxcb-cursor0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 \
134+
libxext6 libxfixes3 libxi6 libxkbfile1 pulseaudio socat zlib1g
135+
125136
# https://github.com/actions/checkout/releases
126137
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
127138
with:
@@ -240,7 +251,6 @@ jobs:
240251
target: ${{ matrix.target }}
241252
disable-spellchecker: true
242253
arch: ${{ matrix.arch }}
243-
emulator-build: 14214601 # needed as of 20251205 when emulator 36.3.10.0 (build_id 14472402) released
244254
pre-emulator-launch-script: |
245255
sudo mkdir /mnt/avd
246256
sudo chown $USER:$USER /mnt/avd

0 commit comments

Comments
 (0)