Skip to content

Commit

Permalink
Add mips and s390x builders
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Dec 12, 2016
1 parent 9bf75b8 commit 584b1a0
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,59 @@ matrix:
# bundle all the gcc cross compilers to enable us to build OpenSSL
- os: linux
env: TARGET=arm-unknown-linux-gnueabi
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=arm-unknown-linux-gnueabihf
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=armv7-unknown-linux-gnueabihf
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=aarch64-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=x86_64-unknown-freebsd
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=x86_64-unknown-netbsd
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=powerpc-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=powerpc64-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=powerpc64le-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=mips-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=mipsel-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=mips64-unknown-linux-gnuabi64
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=mips64el-unknown-linux-gnuabi64
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1
- os: linux
env: TARGET=s390x-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-11-11
SKIP_TESTS=1

# On OSX we want to target 10.7 so we ensure that the appropriate
Expand Down
25 changes: 25 additions & 0 deletions ci/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,31 @@ case $TARGET in
OPENSSL_CC=powerpc64le-linux-gnu-gcc
OPENSSL_AR=powerpc64le-linux-gnu-ar
;;
mips-*-linux-*)
OPENSSL_OS=linux-mips32
OPENSSL_CC=mips-linux-gnu-gcc
OPENSSL_AR=mips-linux-gnu-ar
;;
mipsel-*-linux-*)
OPENSSL_OS=linux-mips32
OPENSSL_CC=mipsel-linux-gnu-gcc
OPENSSL_AR=mipsel-linux-gnu-ar
;;
mips64-*-linux-*)
OPENSSL_OS=linux64-mips64
OPENSSL_CC=mips64-linux-gnuabi64-gcc
OPENSSL_AR=mips64-linux-gnuabi64-ar
;;
mips64el-*-linux-*)
OPENSSL_OS=linux64-mips64
OPENSSL_CC=mips64el-linux-gnuabi64-gcc
OPENSSL_AR=mips64el-linux-gnuabi64-ar
;;
s390x-*-linux-*)
OPENSSL_OS=linux64-s390x
OPENSSL_CC=s390x-linux-gnu-gcc
OPENSSL_AR=s390x-linux-gnu-ar
;;
*)
echo "can't cross compile OpenSSL for $TARGET"
exit 1
Expand Down

0 comments on commit 584b1a0

Please sign in to comment.