mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
ci: Update test-various to ubuntu:22.04
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
FROM ubuntu:20.04
|
||||
FROM ubuntu:22.04
|
||||
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
clang-11 \
|
||||
g++ \
|
||||
make \
|
||||
@@ -15,10 +16,12 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
||||
gdb \
|
||||
libssl-dev \
|
||||
pkg-config \
|
||||
bzip2 \
|
||||
xz-utils \
|
||||
wget \
|
||||
patch \
|
||||
ovmf \
|
||||
ovmf-ia32 \
|
||||
qemu-efi-aarch64 \
|
||||
qemu-system-arm \
|
||||
qemu-system-x86 \
|
||||
@@ -27,19 +30,11 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
||||
RUN curl -sL https://nodejs.org/dist/v18.12.0/node-v18.12.0-linux-x64.tar.xz | \
|
||||
tar -xJ
|
||||
|
||||
# Install 32-bit OVMF files for the i686-unknown-uefi test. This package
|
||||
# is not available in ubuntu 20.04, so download a 22.04 package.
|
||||
RUN curl -sL --output ovmf-ia32.deb http://mirrors.kernel.org/ubuntu/pool/universe/e/edk2/ovmf-ia32_2022.02-3_all.deb
|
||||
RUN dpkg -i ovmf-ia32.deb && rm ovmf-ia32.deb
|
||||
|
||||
WORKDIR /build/
|
||||
COPY scripts/musl-toolchain.sh /build/
|
||||
RUN bash musl-toolchain.sh x86_64 && rm -rf build
|
||||
WORKDIR /
|
||||
|
||||
COPY scripts/cmake.sh /scripts/
|
||||
RUN /scripts/cmake.sh
|
||||
|
||||
COPY scripts/sccache.sh /scripts/
|
||||
RUN sh /scripts/sccache.sh
|
||||
|
||||
|
||||
@@ -109,12 +109,7 @@ def build_and_run(tmp_dir, target):
|
||||
'-drive',
|
||||
f'format=raw,file=fat:rw:{esp}',
|
||||
capture=True,
|
||||
# Ubuntu 20.04 (which is what the Dockerfile currently
|
||||
# uses) provides QEMU 4.2.1, which segfaults on
|
||||
# shutdown under some circumstances. That has been
|
||||
# fixed in newer versions of QEMU, but for now just
|
||||
# don't check the exit status.
|
||||
check=False,
|
||||
check=True,
|
||||
# Set a timeout to kill the VM in case something goes wrong.
|
||||
timeout=60).stdout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user