Skip to content

Commit a509155

Browse files
committed
CI - Fix OpenSSL Path (macOS)
1 parent 9d2b80d commit a509155

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/macos.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,16 @@ jobs:
4848
- name: Setup OpenSSL
4949
run: |
5050
if [[ "${{ matrix.arch }}" == "x64" ]]; then
51-
brew uninstall [email protected] || true
52-
arch -x86_64 brew install [email protected]
53-
echo "WEBUI_TLS_INCLUDE=$(arch -x86_64 brew --prefix [email protected])/include/" >> $GITHUB_ENV
54-
echo "WEBUI_TLS_LIB=$(arch -x86_64 brew --prefix [email protected])/lib/" >> $GITHUB_ENV
55-
else
56-
brew install [email protected]
57-
echo "WEBUI_TLS_INCLUDE=$(brew --prefix [email protected])/include/" >> $GITHUB_ENV
58-
echo "WEBUI_TLS_LIB=$(brew --prefix [email protected])/lib/" >> $GITHUB_ENV
59-
fi
51+
HOMEBREW_X64_PATH="/usr/local/bin/brew"
52+
arch -arm64 brew uninstall [email protected] || true
53+
arch -x86_64 $HOMEBREW_X64_PATH install [email protected]
54+
echo "WEBUI_TLS_INCLUDE=$($HOMEBREW_X64_PATH --prefix [email protected])/include/" >> $GITHUB_ENV
55+
echo "WEBUI_TLS_LIB=$($HOMEBREW_X64_PATH --prefix [email protected])/lib/" >> $GITHUB_ENV
56+
else
57+
brew install [email protected]
58+
echo "WEBUI_TLS_INCLUDE=$(brew --prefix [email protected])/include/" >> $GITHUB_ENV
59+
echo "WEBUI_TLS_LIB=$(brew --prefix [email protected])/lib/" >> $GITHUB_ENV
60+
fi
6061
- name: Build Debug Target
6162
run: make ARCH_TARGET=${{ matrix.arch }} debug
6263
- name: Build Release Target

0 commit comments

Comments
 (0)