Skip to content

Commit b10aed0

Browse files
committed
Auto merge of rust-lang#100935 - cuviper:upgrade-android-ci, r=Mark-Simulacrum
ci: Upgrade android containers from ubuntu:16.04 to 22.04 The main goal of updating to 22.04 is to get away from `llvm.allow-old-toolchain`. These containers are not building LLVM for android, so only the host version matters. A side benefit is that they can also use the system `cmake` instead of building one.
2 parents 3013480 + 9e5bc44 commit b10aed0

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

src/ci/docker/host-x86_64/arm-android/Dockerfile

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:22.04
22

3+
ARG DEBIAN_FRONTEND=noninteractive
34
COPY scripts/android-base-apt-get.sh /scripts/
45
RUN sh /scripts/android-base-apt-get.sh
56

@@ -13,7 +14,7 @@ RUN dpkg --add-architecture i386 && \
1314
libgl1-mesa-glx \
1415
libpulse0 \
1516
libstdc++6:i386 \
16-
openjdk-9-jre-headless \
17+
openjdk-8-jre-headless \
1718
tzdata \
1819
wget \
1920
python3
@@ -29,20 +30,12 @@ ENV PATH=$PATH:/android/sdk/platform-tools
2930

3031
ENV TARGETS=arm-linux-androideabi
3132

32-
# We are intentionally allowing an old toolchain on this builder (and that's
33-
# incompatible with LLVM downloads today).
34-
ENV NO_DOWNLOAD_CI_LLVM 1
35-
36-
ENV RUST_CONFIGURE_ARGS --arm-linux-androideabi-ndk=/android/ndk/arm-14 \
37-
--set llvm.allow-old-toolchain
33+
ENV RUST_CONFIGURE_ARGS --arm-linux-androideabi-ndk=/android/ndk/arm-14
3834

3935
ENV SCRIPT python3 ../x.py --stage 2 test --host='' --target $TARGETS
4036

4137
COPY scripts/sccache.sh /scripts/
4238
RUN sh /scripts/sccache.sh
4339

44-
COPY scripts/cmake.sh /scripts/
45-
RUN /scripts/cmake.sh
46-
4740
COPY scripts/android-start-emulator.sh /scripts/
4841
ENTRYPOINT ["/scripts/android-start-emulator.sh"]

src/ci/docker/host-x86_64/dist-android/Dockerfile

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:22.04
22

33
COPY scripts/android-base-apt-get.sh /scripts/
44
RUN sh /scripts/android-base-apt-get.sh
@@ -32,13 +32,9 @@ ENV RUST_CONFIGURE_ARGS \
3232
--i686-linux-android-ndk=/android/ndk/x86-14 \
3333
--aarch64-linux-android-ndk=/android/ndk/arm64-21 \
3434
--x86_64-linux-android-ndk=/android/ndk/x86_64-21 \
35-
--disable-docs \
36-
--set llvm.allow-old-toolchain
35+
--disable-docs
3736

3837
ENV SCRIPT python3 ../x.py dist --host='' --target $TARGETS
3938

4039
COPY scripts/sccache.sh /scripts/
4140
RUN sh /scripts/sccache.sh
42-
43-
COPY scripts/cmake.sh /scripts/
44-
RUN /scripts/cmake.sh

src/ci/docker/scripts/android-base-apt-get.sh

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ apt-get install -y --no-install-recommends \
1010
g++ \
1111
git \
1212
libssl-dev \
13+
libncurses5 \
1314
make \
1415
ninja-build \
1516
pkg-config \

0 commit comments

Comments
 (0)