summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Sasaki <yusuke.sasaki.nuem@gmail.com>2020-01-16 16:37:42 +0900
committerWez Furlong <wez@wezfurlong.org>2020-01-17 17:19:41 -0800
commit73cda39f9e56da5ded659d7704c235fff6941346 (patch)
tree5b79e56c44adcf8ee9967166bd75f5155ea50ce0
parent6b8c3ecb4b1ba32139cbc25d0605bebc6862c604 (diff)
downloadssh2-rs-73cda39f9e56da5ded659d7704c235fff6941346.zip
macOS: use the set-env command to persist environment variables
-rw-r--r--.github/workflows/macos.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index a7e566e..29b8bbe 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -23,10 +23,12 @@ jobs:
profile: minimal
toolchain: nightly
override: true
+ - name: Export OpenSSL environment variables
+ run: |
+ echo "::set-env name=OPENSSL_INCLUDE_DIR::$(brew --prefix openssl)/include"
+ echo "::set-env name=OPENSSL_LIB_DIR::$(brew --prefix openssl)/lib"
- name: Build and test
run: |
- export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
- export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib
rustc -V
cargo -V
cargo build