]>
Commit | Line | Data |
---|---|---|
5869c6ff | 1 | FROM ubuntu:20.04 |
ff7c6d11 | 2 | |
5869c6ff | 3 | RUN 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 | 21 | RUN 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 |
24 | WORKDIR /build/ |
25 | COPY scripts/musl-toolchain.sh /build/ | |
26 | RUN bash musl-toolchain.sh x86_64 && rm -rf build | |
27 | WORKDIR / | |
28 | ||
ff7c6d11 XL |
29 | COPY scripts/sccache.sh /scripts/ |
30 | RUN sh /scripts/sccache.sh | |
31 | ||
ff7c6d11 | 32 | ENV 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 | |
41 | ENV NO_DEBUG_ASSERTIONS=1 | |
42 | ||
9fa01778 | 43 | ENV WASM_TARGETS=wasm32-unknown-unknown |
1b1a35ee | 44 | ENV 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 | |
51 | ENV NVPTX_TARGETS=nvptx64-nvidia-cuda | |
1b1a35ee | 52 | ENV 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 | ||
56 | ENV 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 | 59 | ENV MUSL_SCRIPT python3 /checkout/x.py --stage 2 test --host='' --target $MUSL_TARGETS |
9fa01778 | 60 | |
532ac7d7 | 61 | ENV SCRIPT $WASM_SCRIPT && $NVPTX_SCRIPT && $MUSL_SCRIPT |