Skip to content

Commit fcf1614

Browse files
committed
Add Android SDK setup and emulator dependencies for metal runner
The custom metal runner lacks pre-installed Android SDK and X11 libraries that GitHub-hosted runners have. This adds: - dnf packages for X11/graphics libs required by the emulator - android-actions/setup-android@v3 to install and configure the SDK - sdkmanager step to install emulator, platform-tools, and system image Fixes "undefined/platform-tools/adb" path issue and "Could not open libX11-xcb.so.1" error.
1 parent 67adfaa commit fcf1614

1 file changed

Lines changed: 20 additions & 15 deletions

File tree

.github/workflows/llm-android.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,26 @@ jobs:
5454
5555
- name: Install Android Emulator dependencies
5656
run: |
57-
sudo apt-get update
58-
sudo apt-get install -y \
59-
libx11-xcb1 \
60-
libxcb1 \
61-
libxcb-glx0 \
62-
libxcb-shm0 \
63-
libpulse0 \
64-
libnss3 \
65-
libxcomposite1 \
66-
libxcursor1 \
67-
libxi6 \
68-
libxtst6 \
69-
libasound2 \
70-
libgl1-mesa-glx \
71-
libgl1-mesa-dri
57+
cat /etc/os-release
58+
sudo dnf install -y \
59+
libX11-xcb \
60+
libxcb \
61+
pulseaudio-libs \
62+
nss \
63+
libXcomposite \
64+
libXcursor \
65+
libXi \
66+
libXtst \
67+
alsa-lib \
68+
mesa-libGL \
69+
mesa-dri-drivers
70+
71+
- name: Set up Android SDK
72+
uses: android-actions/setup-android@v3
73+
74+
- name: Install Android Emulator and system image
75+
run: |
76+
sdkmanager --install "emulator" "platform-tools" "platforms;android-${{ env.API_LEVEL }}" "system-images;android-${{ env.API_LEVEL }};default;${{ env.ARCH }}"
7277
7378
- name: Set up JDK 17
7479
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)