]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/host-x86_64/test-various/Dockerfile
New upstream version 1.53.0+dfsg1
[rustc.git] / src / ci / docker / host-x86_64 / test-various / Dockerfile
CommitLineData
5869c6ff 1FROM ubuntu:20.04
ff7c6d11 2
5869c6ff 3RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ff7c6d11
XL
4 g++ \
5 make \
1b1a35ee 6 ninja-build \
ff7c6d11
XL
7 file \
8 curl \
9 ca-certificates \
ba9703b0 10 python3 \
ff7c6d11
XL
11 git \
12 cmake \
13 sudo \
14 gdb \
416331ca
XL
15 libssl-dev \
16 pkg-config \
532ac7d7
XL
17 xz-utils \
18 wget \
19 patch
ff7c6d11 20
cdc7bbd5 21RUN curl -sL https://nodejs.org/dist/v15.14.0/node-v15.14.0-linux-x64.tar.xz | \
9fa01778 22 tar -xJ
ff7c6d11 23
532ac7d7
XL
24WORKDIR /build/
25COPY scripts/musl-toolchain.sh /build/
26RUN bash musl-toolchain.sh x86_64 && rm -rf build
27WORKDIR /
28
ff7c6d11
XL
29COPY scripts/sccache.sh /scripts/
30RUN sh /scripts/sccache.sh
31
ff7c6d11 32ENV RUST_CONFIGURE_ARGS \
532ac7d7 33 --musl-root-x86_64=/usr/local/x86_64-linux-musl \
cdc7bbd5 34 --set build.nodejs=/node-v15.14.0-linux-x64/bin/node \
0531ce1d 35 --set rust.lld
ff7c6d11 36
83c7162d
XL
37# Some run-make tests have assertions about code size, and enabling debug
38# assertions in libstd causes the binary to be much bigger than it would
39# otherwise normally be. We already test libstd with debug assertions in lots of
40# other contexts as well
41ENV NO_DEBUG_ASSERTIONS=1
42
9fa01778 43ENV WASM_TARGETS=wasm32-unknown-unknown
1b1a35ee 44ENV WASM_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $WASM_TARGETS \
0531ce1d 45 src/test/run-make \
ff7c6d11 46 src/test/ui \
ff7c6d11
XL
47 src/test/mir-opt \
48 src/test/codegen-units \
3dfed10e 49 library/core
9fa01778
XL
50
51ENV NVPTX_TARGETS=nvptx64-nvidia-cuda
1b1a35ee 52ENV NVPTX_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $NVPTX_TARGETS \
532ac7d7
XL
53 src/test/run-make \
54 src/test/assembly
55
56ENV MUSL_TARGETS=x86_64-unknown-linux-musl \
57 CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc \
58 CXX_x86_64_unknown_linux_musl=x86_64-linux-musl-g++
1b1a35ee 59ENV MUSL_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $MUSL_TARGETS
9fa01778 60
532ac7d7 61ENV SCRIPT $WASM_SCRIPT && $NVPTX_SCRIPT && $MUSL_SCRIPT