Skip to content

Commit 14c8e4a

Browse files
committed
Fix macos CI finding openssl dep
1 parent 8debeaf commit 14c8e4a

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/ci.macos.arm.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@ jobs:
2020
- name: Install Dependencies
2121
shell: bash
2222
run: |
23-
brew install openssl gflags googletest gsasl
23+
brew install openssl@3 gflags googletest gsasl
2424
2525
- name: Build
2626
run: |
27+
export OPENSSL_TOP=$(brew --prefix openssl@3)
28+
export OPENSSL_VERSION=$(ls -1 $OPENSSL_TOP | grep -E '^[0-9]' | head -1)
29+
export OPENSSL_DIR="$OPENSSL_TOP/$OPENSSL_VERSION"
2730
cmake -B ${{github.workspace}}/build \
2831
-D PHOTON_CXX_STANDARD=17 \
2932
-D PHOTON_ENABLE_ECOSYSTEM=ON \
3033
-D PHOTON_BUILD_TESTING=ON \
3134
-D CMAKE_BUILD_TYPE=MinSizeRel \
3235
-D PHOTON_ENABLE_SASL=ON \
3336
-D PHOTON_ENABLE_LIBCURL=ON \
34-
-D OPENSSL_ROOT_DIR=/opt/homebrew/Cellar/openssl@3/3.6.0
37+
-D OPENSSL_ROOT_DIR=${OPENSSL_DIR}
3538
cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
3639
3740
- name: Test

.github/workflows/ci.macos.x86_64.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@ jobs:
2020
- name: Install Dependencies
2121
shell: bash
2222
run: |
23-
brew install openssl gflags googletest gsasl nasm
23+
brew install openssl@3 gflags googletest gsasl nasm
2424
2525
- name: Build
2626
run: |
27+
export OPENSSL_TOP=$(brew --prefix openssl@3)
28+
export OPENSSL_VERSION=$(ls -1 $OPENSSL_TOP | grep -E '^[0-9]' | head -1)
29+
export OPENSSL_DIR="$OPENSSL_TOP/$OPENSSL_VERSION"
2730
cmake -B ${{github.workspace}}/build \
2831
-D PHOTON_CXX_STANDARD=17 \
2932
-D PHOTON_ENABLE_ECOSYSTEM=ON \
3033
-D PHOTON_BUILD_TESTING=ON \
3134
-D CMAKE_BUILD_TYPE=MinSizeRel \
3235
-D PHOTON_ENABLE_SASL=ON \
3336
-D PHOTON_ENABLE_LIBCURL=ON \
34-
-D OPENSSL_ROOT_DIR=/opt/homebrew/Cellar/openssl@3/3.6.0
37+
-D OPENSSL_ROOT_DIR=${OPENSSL_DIR}
3538
cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
3639
3740
- name: Test

0 commit comments

Comments
 (0)