From 74cb40189c76d88265899b9a6ae19ea6f54f15d7 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 27 Jul 2018 09:00:37 -0700 Subject: [PATCH] Fix MUSL builder by compiling OpenSSL --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4310e984..764f1570 100644 --- a/.travis.yml +++ b/.travis.yml @@ -112,6 +112,14 @@ matrix: - rust: nightly env: JOB=dist-linux TARGET=x86_64-unknown-linux-musl before_script: rustup target add $TARGET + install: + - travis_retry curl -O https://www.openssl.org/source/openssl-1.0.2o.tar.gz + - tar xf openssl-1.0.2o.tar.gz + - (cd openssl-1.0.2o && + CC=musl-gcc ./Configure --prefix=$HOME/openssl-musl no-dso no-ssl2 no-ssl3 linux-x86_64 -fPIC && + make -j$(nproc) && + make install) + - export OPENSSL_DIR=$HOME/openssl-musl script: cargo build --manifest-path crates/cli/Cargo.toml --release --target $TARGET addons: apt: