Skip to content

Commit

Permalink
CI - Fix IF Syntax (macOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertShown committed Nov 22, 2024
1 parent a3ea361 commit 2a5a449
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ jobs:
fail-on-cache-miss: true
- name: Setup OpenSSL
run: |
if [[ "${{ matrix.arch }}" == "x64" ]]; then
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
if [[ "${{ matrix.arch }}" == "x64" ]]; then
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 2a5a449

Please sign in to comment.