Skip to content

Commit c5612cb

Browse files
committed
Move testing to test-various
1 parent c101088 commit c5612cb

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

src/ci/docker/dist-x86_64-musl/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ WORKDIR /build/
2222
COPY scripts/musl-toolchain.sh /build/
2323
# We need to mitigate rust-lang/rust#34978 when compiling musl itself as well
2424
# TODO: Check what this issue is and if we can ignore it
25-
26-
RUN bash musl-toolchain.sh x86_64-linux-musl && rm -rf build
25+
RUN CFLAGS="-Wa,-mrelax-relocations=no" \
26+
CXXFLAGS="-Wa,-mrelax-relocations=no" \
27+
bash musl-toolchain.sh x86_64-linux-musl && rm -rf build
2728

2829
COPY scripts/sccache.sh /scripts/
2930
RUN sh /scripts/sccache.sh
@@ -49,6 +50,4 @@ ENV HOSTS=x86_64-unknown-linux-musl \
4950

5051
ENV RUSTFLAGS="-C target-feature=-crt-static"
5152

52-
ENV SCRIPT \
53-
python2.7 ../x.py test --target $HOSTS && \
54-
python2.7 ../x.py dist --host $HOSTS --target $HOSTS
53+
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/test-various/Dockerfile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1111
cmake \
1212
sudo \
1313
gdb \
14-
xz-utils
14+
xz-utils \
15+
# for musl
16+
wget \
17+
patch
1518

1619
# FIXME: build the `ptx-linker` instead.
1720
RUN curl -sL https://github.com/denzp/rust-ptx-linker/releases/download/v0.9.0-alpha.2/rust-ptx-linker.linux64.tar.gz | \
@@ -20,10 +23,18 @@ RUN curl -sL https://github.com/denzp/rust-ptx-linker/releases/download/v0.9.0-a
2023
RUN curl -sL https://nodejs.org/dist/v9.2.0/node-v9.2.0-linux-x64.tar.xz | \
2124
tar -xJ
2225

26+
WORKDIR /build/
27+
COPY scripts/musl-toolchain.sh /build/
28+
RUN CFLAGS="-Wa,-mrelax-relocations=no" \
29+
CXXFLAGS="-Wa,-mrelax-relocations=no" \
30+
bash musl-toolchain.sh x86_64-linux-musl && rm -rf build
31+
WORKDIR /
32+
2333
COPY scripts/sccache.sh /scripts/
2434
RUN sh /scripts/sccache.sh
2535

2636
ENV RUST_CONFIGURE_ARGS \
37+
--musl-root-x86_64=/usr/local/x86_64-linux-musl \
2738
--set build.nodejs=/node-v9.2.0-linux-x64/bin/node \
2839
--set rust.lld
2940

@@ -47,4 +58,9 @@ ENV NVPTX_TARGETS=nvptx64-nvidia-cuda
4758
ENV NVPTX_SCRIPT python2.7 /checkout/x.py test --target $NVPTX_TARGETS \
4859
src/test/run-make
4960

50-
ENV SCRIPT $WASM_SCRIPT && $NVPTX_SCRIPT
61+
ENV MUSL_TARGETS=x86_64-unknown-linux-musl \
62+
CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc \
63+
CXX_x86_64_unknown_linux_musl=x86_64-linux-musl-g++
64+
ENV MUSL_SCRIPT python2.7 /checkout/x.py test --target $MUSL_TARGETS
65+
66+
ENV SCRIPT $WASM_SCRIPT && $NVPTX_SCRIPT && $MUSL_SCRIPT

0 commit comments

Comments
 (0)