Skip to content

Commit b6dd153

Browse files
committed
Auto merge of rust-lang#113931 - cuviper:ci-ubuntu-22.04, r=Mark-Simulacrum
ci: update ubuntu:20.04 builders to 22.04 This is mostly just maintenance to avoid bitrotting, but 22.04 also updates to cmake 3.22, so they don't need the manual builds from rust-lang#113714 anymore.
2 parents 317ec04 + 3cd3a91 commit b6dd153

File tree

14 files changed

+493
-264
lines changed

14 files changed

+493
-264
lines changed

src/ci/docker/host-aarch64/aarch64-gnu/Dockerfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

3-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
RUN apt-get update && apt-get install -y --no-install-recommends \
45
g++ \
56
make \
67
ninja-build \
@@ -17,9 +18,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
1718
xz-utils \
1819
&& rm -rf /var/lib/apt/lists/*
1920

20-
COPY scripts/cmake.sh /scripts/
21-
RUN /scripts/cmake.sh
22-
2321
COPY scripts/sccache.sh /scripts/
2422
RUN sh /scripts/sccache.sh
2523

src/ci/docker/host-x86_64/armhf-gnu/Dockerfile

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

3-
RUN apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
RUN apt-get update -y && apt-get install -y --no-install-recommends \
45
bc \
56
bzip2 \
67
ca-certificates \
@@ -34,14 +35,14 @@ WORKDIR /build
3435
# the kernel. This file was generated by running `make vexpress_defconfig`
3536
# followed by `make menuconfig` and then enabling the IPv6 protocol page.
3637
COPY host-x86_64/armhf-gnu/vexpress_config /build/.config
37-
RUN curl https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.253.tar.xz | \
38+
RUN curl https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.320.tar.xz | \
3839
tar xJf - && \
39-
cd /build/linux-4.4.253 && \
40+
cd /build/linux-4.14.320 && \
4041
cp /build/.config . && \
4142
make -j$(nproc) all && \
4243
cp arch/arm/boot/zImage /tmp && \
4344
cd /build && \
44-
rm -rf linux-4.4.253
45+
rm -rf linux-4.14.320
4546

4647
# Compile an instance of busybox as this provides a lightweight system and init
4748
# binary which we will boot into. Only trick here is configuring busybox to
@@ -59,7 +60,7 @@ RUN curl https://www.busybox.net/downloads/busybox-1.32.1.tar.bz2 | tar xjf - &&
5960
# Download the ubuntu rootfs, which we'll use as a chroot for all our tests.
6061
WORKDIR /tmp
6162
RUN mkdir rootfs/ubuntu
62-
RUN curl https://cdimage.ubuntu.com/ubuntu-base/releases/20.04/release/ubuntu-base-20.04.1-base-armhf.tar.gz | \
63+
RUN curl https://cdimage.ubuntu.com/ubuntu-base/releases/22.04/release/ubuntu-base-22.04.2-base-armhf.tar.gz | \
6364
tar xzf - -C rootfs/ubuntu && \
6465
cd rootfs && mkdir proc sys dev etc etc/init.d
6566

@@ -76,9 +77,6 @@ RUN arm-linux-gnueabihf-gcc addentropy.c -o rootfs/addentropy -static
7677
# Source of the file: https://github.com/vfdev-5/qemu-rpi2-vexpress/raw/master/vexpress-v2p-ca15-tc1.dtb
7778
RUN curl -O https://ci-mirrors.rust-lang.org/rustc/vexpress-v2p-ca15-tc1.dtb
7879

79-
COPY scripts/cmake.sh /scripts/
80-
RUN /scripts/cmake.sh
81-
8280
COPY scripts/sccache.sh /scripts/
8381
RUN sh /scripts/sccache.sh
8482

0 commit comments

Comments
 (0)