diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index fcb0415..9877996 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -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 diff --git a/android/Dockerfile b/android/Dockerfile new file mode 100644 index 0000000..42b7c59 --- /dev/null +++ b/android/Dockerfile @@ -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 +