This expands the `cross` travis matrix entry with a few more targets that our nightlies are building: * x86_64-rumprun-netbsd * arm-unknown-linux-musleabi * arm-unknown-linux-musleabihf * armv7-unknown-linux-musleabihf * mips-unknown-linux-musl * mipsel-unknown-linux-musl This commit doesn't compile custom toolchains like our current cross-image does, but instead compiles musl manually and then compiles libunwind manually (like x86_64) for use for the ARM targets and just uses openwrt toolchains for the mips targets.
31 lines
926 B
Docker
31 lines
926 B
Docker
FROM ubuntu:16.04
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
g++ \
|
|
make \
|
|
file \
|
|
curl \
|
|
ca-certificates \
|
|
python2.7 \
|
|
git \
|
|
cmake \
|
|
sudo \
|
|
gdb \
|
|
xz-utils \
|
|
g++-arm-linux-gnueabi \
|
|
g++-arm-linux-gnueabihf
|
|
|
|
ENV SCCACHE_DIGEST=7237e38e029342fa27b7ac25412cb9d52554008b12389727320bd533fd7f05b6a96d55485f305caf95e5c8f5f97c3313e10012ccad3e752aba2518f3522ba783
|
|
RUN curl -L https://api.pub.build.mozilla.org/tooltool/sha512/$SCCACHE_DIGEST | \
|
|
tar xJf - -C /usr/local/bin --strip-components=1
|
|
|
|
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
|
|
dpkg -i dumb-init_*.deb && \
|
|
rm dumb-init_*.deb
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
|
|
|
ENV HOSTS=arm-unknown-linux-gnueabi
|
|
ENV HOSTS=$HOSTS,arm-unknown-linux-gnueabihf
|
|
|
|
ENV RUST_CONFIGURE_ARGS --host=$HOSTS
|
|
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|