Add Android docker image

This commit is contained in:
Fijxu 2024-03-25 12:23:18 -03:00
parent 1e136ee1b4
commit 68661c2003
No known key found for this signature in database
GPG key ID: 32C1DDF333EDA6A4
2 changed files with 17 additions and 1 deletions

View file

@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
# image: ["linux-clang-format", "linux-fresh", "linux-mingw", "linux-transifex"]
image: ["forgejo-runner-dind", "linux-clang-format", "linux-fresh", "linux-mingw"]
image: ["android", "linux-clang-format", "linux-fresh", "linux-mingw"]
steps:
- uses: https://github.com/actions/checkout@v2

16
android/Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM ubuntu:jammy
LABEL maintainer="suyu"
ENV ANDROID_HOME=/usr/lib/android-sdk/
RUN useradd -m -u 1027 -s /bin/bash suyu \
&& apt-get update && apt-get -y full-upgrade \
&& apt-get install -y git gpg-agent wget \
&& wget -qO- https://deb.nodesource.com/setup_20.x | bash - \
&& DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y ccache apksigner glslang-dev glslang-tools git sdkmanager android-sdk bash openjdk-17-jdk openjdk-17-jre curl zip unzip tar cmake ninja-build pkg-config nodejs \
&& DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y --no-install-recommends clang-14 lld-14 llvm-14 llvm-14-linker-tools \
&& ln -s $(which clang-14) /usr/bin/clang && ln -s $(which clang++-14) /usr/bin/clang++ \
&& echo y | sdkmanager --sdk_root=/usr/lib/android-sdk --licenses \
&& apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log
#Disable user for now.
#USER 1027