mirror of
https://git.suyu.dev/suyu/build-environments
synced 2024-11-21 14:28:59 -07:00
Add Android docker image
This commit is contained in:
parent
1e136ee1b4
commit
68661c2003
2 changed files with 17 additions and 1 deletions
|
@ -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
16
android/Dockerfile
Normal 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
|
||||
|
Loading…
Reference in a new issue