diff options
author | Azat Khuzhin <azat@libevent.org> | 2020-11-02 00:39:26 +0300 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2020-11-02 01:14:58 +0300 |
commit | 29b1404ba215974692abb5dcac757b65a095699f (patch) | |
tree | cc63a6ffb86ff87aac1994aaf02a06f57251c62a /.github | |
parent | 1a242e1c96be986570f4dcca29982612879de564 (diff) | |
download | libevent-29b1404ba215974692abb5dcac757b65a095699f.tar.gz |
Add autodetection of openssl via brew into build matrix
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/macos.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 4c98c320..5ce4b432 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -36,6 +36,7 @@ jobs: - TEST_EXPORT_STATIC - TEST_EXPORT_SHARED - OPENSSL_1_1 + - BREW_AUTODETECT_OPENSSL steps: - uses: actions/checkout@v2.0.0 @@ -52,7 +53,10 @@ jobs: - name: Build And Test shell: bash run: | - if [ "${{ matrix.EVENT_MATRIX }}" == "OPENSSL_1_1" ]; then + if [ "${{ matrix.EVENT_MATRIX }}" == "BREW_AUTODETECT_OPENSSL" ]; then + # use autodetection via brew + : + elif [ "${{ matrix.EVENT_MATRIX }}" == "OPENSSL_1_1" ]; then export OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 else export OPENSSL_ROOT_DIR=/usr/local/opt/openssl @@ -121,6 +125,7 @@ jobs: - DISABLE_DEBUG_MODE - DISABLE_MM_REPLACEMENT - OPENSSL_1_1 + - BREW_AUTODETECT_OPENSSL steps: - uses: actions/checkout@v2.0.0 @@ -137,7 +142,10 @@ jobs: - name: Build And Test shell: bash run: | - if [ "${{ matrix.EVENT_MATRIX }}" == "OPENSSL_1_1" ]; then + if [ "${{ matrix.EVENT_MATRIX }}" == "BREW_AUTODETECT_OPENSSL" ]; then + # use autodetection via brew + : + elif [ "${{ matrix.EVENT_MATRIX }}" == "OPENSSL_1_1" ]; then export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig:$PKG_CONFIG_PATH" else export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH" |