Skip to content

Commit

Permalink
chore(ci): for osx force openssl static (#243)
Browse files Browse the repository at this point in the history
Description
OSX force openssl static

Motivation and Context
Remove the need to install openssl via brew

How Has This Been Tested?
Builds locally
  • Loading branch information
leet4tari authored Jan 24, 2025
1 parent fc949be commit 6c5f62e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,17 @@ jobs:
run: |
echo "PLATFORM_SPECIFIC_DIR=osx" >> $GITHUB_ENV
echo "LIB_EXT=.dylib" >> $GITHUB_ENV
# Force static openssl libs
echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
if [ -f /opt/homebrew/opt/openssl/README.md ]; then
ls -la /opt/homebrew/opt/openssl/
echo "OPENSSL_LIB_DIR=/opt/homebrew/opt/openssl/lib" >> $GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=/opt/homebrew/opt/openssl/include" >> $GITHUB_ENV
else
ls -la /usr/local/opt/openssl/
echo "OPENSSL_LIB_DIR=/usr/local/opt/openssl/lib" >> $GITHUB_ENV
echo "OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include" >> $GITHUB_ENV
fi
# Hardcoded sdk for MacOSX on ARM64
- name: Set environment variables - macOS - ARM64 (pin/sdk)
Expand Down

0 comments on commit 6c5f62e

Please sign in to comment.