Added Android Dockerfile

This commit is contained in:
niansa 2024-03-14 10:54:34 +01:00
parent 2229097477
commit 670ac8978e
2 changed files with 17 additions and 0 deletions

View file

@ -11,6 +11,16 @@ build linux x64:
- docker build -f Dockerfile-linux -t ${CI_REGISTRY_IMAGE}:linux-x64 .
- docker push ${CI_REGISTRY_IMAGE}:linux-x64
build android x64:
stage: build
image: docker
services:
- docker:dind
script:
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
- docker build -f Dockerfile-android -t ${CI_REGISTRY_IMAGE}:android-x64 .
- docker push ${CI_REGISTRY_IMAGE}:android-x64
build windows x64:
stage: build
image: docker

7
Dockerfile-android Normal file
View file

@ -0,0 +1,7 @@
FROM ubuntu:jammy
RUN apt-get update --yes \
&& apt-get install --yes 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 \
&& apt-get install --yes --no-install-recommends clang-14 lld-14 llvm-14 llvm-14-linker-tools \
&& apt-get clean \
&& 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