Skip to content

Commit

Permalink
CI - Fix OpenSSL Path (macOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertShown committed Nov 22, 2024
1 parent 9d2b80d commit a509155
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,16 @@ jobs:
- name: Setup OpenSSL
run: |
if [[ "${{ matrix.arch }}" == "x64" ]]; then
brew uninstall [email protected] || true
arch -x86_64 brew install [email protected]
echo "WEBUI_TLS_INCLUDE=$(arch -x86_64 brew --prefix [email protected])/include/" >> $GITHUB_ENV
echo "WEBUI_TLS_LIB=$(arch -x86_64 brew --prefix [email protected])/lib/" >> $GITHUB_ENV
else
brew install [email protected]
echo "WEBUI_TLS_INCLUDE=$(brew --prefix [email protected])/include/" >> $GITHUB_ENV
echo "WEBUI_TLS_LIB=$(brew --prefix [email protected])/lib/" >> $GITHUB_ENV
fi
HOMEBREW_X64_PATH="/usr/local/bin/brew"
arch -arm64 brew uninstall [email protected] || true
arch -x86_64 $HOMEBREW_X64_PATH install [email protected]
echo "WEBUI_TLS_INCLUDE=$($HOMEBREW_X64_PATH --prefix [email protected])/include/" >> $GITHUB_ENV
echo "WEBUI_TLS_LIB=$($HOMEBREW_X64_PATH --prefix [email protected])/lib/" >> $GITHUB_ENV
else
brew install [email protected]
echo "WEBUI_TLS_INCLUDE=$(brew --prefix [email protected])/include/" >> $GITHUB_ENV
echo "WEBUI_TLS_LIB=$(brew --prefix [email protected])/lib/" >> $GITHUB_ENV
fi
- name: Build Debug Target
run: make ARCH_TARGET=${{ matrix.arch }} debug
- name: Build Release Target
Expand Down

0 comments on commit a509155

Please sign in to comment.