Skip to content

Commit

Permalink
Simplified the openssl include path for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Jan 5, 2024
1 parent 6521668 commit fc325a0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,20 +241,20 @@ jobs:
- name: Install OpenSSL
run: |
brew install openssl
echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> /Users/runner/.bash_profile
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> /Users/runner/.bash_profile
source ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@3/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
- name: Checkout
uses: actions/checkout@v3
- name: "Build & Test"
env:
CPR_BUILD_TESTS: ON
CPR_BUILD_TESTS_SSL: ON
CPR_FORCE_OPENSSL_BACKEND: ON
OPENSSL_ROOT_DIR: "/usr/local/opt/openssl@3"
OPENSSL_LIBRARIES: "/usr/local/opt/openssl@3/lib"
OPENSSL_ROOT_DIR: "/usr/local/opt/openssl"
OPENSSL_LIBRARIES: "/usr/local/opt/openssl/lib"
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ github.workspace }}/build
Expand Down Expand Up @@ -315,7 +315,7 @@ jobs:
- name: Install OpenSSL
run: |
brew install openssl
echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> /Users/runner/.bash_profile
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> /Users/runner/.bash_profile
source ~/.bash_profile
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -325,11 +325,11 @@ jobs:
CPR_BUILD_TESTS_SSL: OFF
CPR_USE_BOOST_FILESYSTEM: ON
CPR_FORCE_OPENSSL_BACKEND: ON
OPENSSL_ROOT_DIR: "/usr/local/opt/openssl@3"
OPENSSL_LIBRARIES: "/usr/local/opt/openssl@3/lib"
LDFLAGS: "-L/usr/local/opt/openssl@3/lib"
CPPFLAGS: "-I/usr/local/opt/openssl@3/include"
PKG_CONFIG_PATH: "/usr/local/opt/openssl@3/lib/pkgconfig"
OPENSSL_ROOT_DIR: "/usr/local/opt/openssl"
OPENSSL_LIBRARIES: "/usr/local/opt/openssl/lib"
LDFLAGS: "-L/usr/local/opt/openssl/lib"
CPPFLAGS: "-I/usr/local/opt/openssl/include"
PKG_CONFIG_PATH: "/usr/local/opt/openssl/lib/pkgconfig"
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{ github.workspace }}/build
Expand Down

0 comments on commit fc325a0

Please sign in to comment.