From 0ee3935ed3375f61db7e47e3d5134765714f563e Mon Sep 17 00:00:00 2001 From: Marco A L Barbosa <malbarbo@gmail.com> Date: Fri, 27 Oct 2017 11:06:14 -0200 Subject: [PATCH] Add x86_64-unknown-linux-gnux32 docker image --- ci/docker/x86_64-unknown-linux-gnux32/Dockerfile | 5 +++++ ci/run.sh | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 ci/docker/x86_64-unknown-linux-gnux32/Dockerfile diff --git a/ci/docker/x86_64-unknown-linux-gnux32/Dockerfile b/ci/docker/x86_64-unknown-linux-gnux32/Dockerfile new file mode 100644 index 00000000..1af41343 --- /dev/null +++ b/ci/docker/x86_64-unknown-linux-gnux32/Dockerfile @@ -0,0 +1,5 @@ +FROM ubuntu:17.04 +RUN apt-get update +RUN apt-get install -y --no-install-recommends \ + gcc-multilib libc6-dev ca-certificates +ENV PATH=$PATH:/rust/bin diff --git a/ci/run.sh b/ci/run.sh index 51a2c687..65d716e9 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -68,4 +68,10 @@ if [ "$QEMU" != "" ]; then exec grep "^PASSED .* tests" $CARGO_TARGET_DIR/out.log fi -exec cargo test --manifest-path libc-test/Cargo.toml --target $TARGET +# FIXME: x86_64-unknown-linux-gnux32 fail to compile wihout --release +opt= +if [ "$TARGET" = "x86_64-unknown-linux-gnux32" ]; then + opt="--release" +fi + +exec cargo test $opt --manifest-path libc-test/Cargo.toml --target $TARGET -- GitLab