Skip to content

Commit b03abf8

Browse files
committed
Test
1 parent df9742f commit b03abf8

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
fail-fast: false
171171
matrix:
172172
# Testing Android builds for 4.27, 5.1, 5.2, 5.3, and 5.4
173-
unreal: ['4.27', '5.1', '5.2', '5.3', '5.4']
173+
unreal: ['4.27', '5.1', '5.2', '5.3', '5.4', '5.5']
174174
uses: ./.github/workflows/test-android.yml
175175
with:
176176
unreal-version: ${{ matrix.unreal }}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
ARG NAMESPACE
2+
ARG PREREQS_TAG
3+
FROM ${NAMESPACE}/ue4-base-build-prerequisites:${PREREQS_TAG}
4+
5+
# Switch to root to install additional packages
6+
USER root
7+
8+
# Install Java 17 (required for UE 5.6 Android builds)
9+
RUN apt-get update && apt-get install -y --no-install-recommends \
10+
openjdk-17-jdk \
11+
wget \
12+
unzip && \
13+
rm -rf /var/lib/apt/lists/*
14+
15+
# Set up environment variables for Android SDK/NDK
16+
# Unreal Engine checks multiple environment variable names, so we set all of them
17+
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
18+
ENV ANDROID_HOME=/home/ue4/android-sdk
19+
ENV ANDROID_SDK_ROOT=/home/ue4/android-sdk
20+
ENV ANDROID_NDK=/home/ue4/android-sdk/ndk/27.2.12479018
21+
ENV ANDROID_NDK_ROOT=/home/ue4/android-sdk/ndk/27.2.12479018
22+
ENV NDKROOT=/home/ue4/android-sdk/ndk/27.2.12479018
23+
ENV NDK_ROOT=/home/ue4/android-sdk/ndk/27.2.12479018
24+
ENV PATH=${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/platform-tools
25+
26+
# Switch to ue4 user for SDK installation (to ensure correct permissions)
27+
USER ue4
28+
29+
# Download and install Android command-line tools
30+
RUN mkdir -p ${ANDROID_HOME}/cmdline-tools && \
31+
cd ${ANDROID_HOME}/cmdline-tools && \
32+
wget -q https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip && \
33+
unzip -q commandlinetools-linux-9477386_latest.zip && \
34+
rm commandlinetools-linux-9477386_latest.zip && \
35+
mv cmdline-tools latest
36+
37+
# Accept licenses and install Android SDK components
38+
# UE 5.6 requires: API Level 34, Build Tools 34.0.0, NDK r27c (27.2.12479018)
39+
RUN yes | ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --licenses && \
40+
${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager \
41+
"platform-tools" \
42+
"platforms;android-34" \
43+
"build-tools;34.0.0" \
44+
"ndk;27.2.12479018"

0 commit comments

Comments
 (0)