Fix macos CI finding openssl dep #1350
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: macOS x86_64 | |
| on: | |
| pull_request: | |
| branches: [ "main", "release/*" ] | |
| jobs: | |
| macOS13-x86: | |
| runs-on: macos-15 | |
| steps: | |
| - uses: szenius/[email protected] | |
| with: | |
| timezoneLinux: "Asia/Shanghai" | |
| timezoneMacos: "Asia/Shanghai" | |
| timezoneWindows: "China Standard Time" | |
| - uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| shell: bash | |
| run: | | |
| brew install openssl@3 gflags googletest gsasl nasm | |
| - name: Build | |
| run: | | |
| brew_path (){ | |
| echo "$(brew list $1 | head -1 | sed "s/\(^.*\/$1\/[^\/]*\).*/\1/")" | |
| } | |
| cmake -B ${{github.workspace}}/build \ | |
| -D PHOTON_CXX_STANDARD=17 \ | |
| -D PHOTON_ENABLE_ECOSYSTEM=ON \ | |
| -D PHOTON_BUILD_TESTING=ON \ | |
| -D CMAKE_BUILD_TYPE=MinSizeRel \ | |
| -D PHOTON_ENABLE_SASL=ON \ | |
| -D PHOTON_ENABLE_LIBCURL=ON \ | |
| -D OPENSSL_ROOT_DIR=$(brew_path openssl@3) | |
| cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu) | |
| - name: Test | |
| working-directory: ${{github.workspace}}/build | |
| run: ctest -E test-lockfree --timeout 3600 -V |