Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #153 from jaspervdm/link_openssl_v2
Browse files Browse the repository at this point in the history
Use vendored nativetls
  • Loading branch information
jaspervdm authored Apr 23, 2019
2 parents 0d57777 + 467f998 commit 149f855
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 15 deletions.
24 changes: 24 additions & 0 deletions .before-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

case "${TRAVIS_OS_NAME}" in
"linux")
wget https://www.openssl.org/source/openssl-1.1.0j.tar.gz
tar -xf openssl-1.1.0j.tar.gz
cd openssl-1.1.0j
./config
make
cd ..
cargo clean && \
OPENSSL_LIB_DIR=./openssl-1.1.0 OPENSSL_INCLUDE_DIR=./openssl-1.1.0/include cargo build --release && \
./.auto-release.sh
;;
"osx")
brew update
cargo clean && \
cargo build --release && \
./.auto-release.sh
;;
*)
printf "Error! Unknown \$TRAVIS_OS_NAME: \`%s\`" "${TRAVIS_OS_NAME}"
exit 1
esac
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,8 @@ matrix:
- os: osx

before_deploy:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cargo clean && OPENSSL_STATIC=1 OPENSSL_LIB_DIR=/usr/local/opt/openssl/lib OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include cargo build --release && ./.auto-release.sh;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
cargo clean && OPENSSL_STATIC=1 OPENSSL_LIB_DIR=/usr/local/opt/openssl/lib OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include cargo build --release && ./.auto-release.sh;
fi

- ./.before-deploy.sh

deploy:
provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
Expand Down
121 changes: 115 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ serde_json = "1.0"
toml = "0.4"
clap = "2"
colored = "1.6"
ws = { version="0.7", features=["ssl"] }
ws = { git = "https://github.com/vault713/ws-rs", branch = "vendored", features = ["nativetls", "vendored"]}
dirs = "1"
futures = "0.1"
tokio = "= 0.1.11"
Expand Down

0 comments on commit 149f855

Please sign in to comment.