Skip to content

Commit

Permalink
Fixing pkgconfig link and unlink
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecosta90 committed Nov 21, 2024
1 parent 423ff59 commit 4caed2b
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,12 @@ jobs:
- name: Install dependencies
run: |
brew install autoconf automake libtool libevent pkg-config openssl@${{ matrix.openssl }}
# Handle OpenSSL 3.0 keg-only setup
if [ "${{ matrix.openssl }}" == "3.0" ]; then
echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> $HOME/.bash_profile
echo 'export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"' >> $HOME/.bash_profile
echo 'export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include"' >> $HOME/.bash_profile
echo 'export PKG_CONFIG_PATH="/opt/homebrew/opt/[email protected]/lib/pkgconfig"' >> $HOME/.bash_profile
source $HOME/.bash_profile
/opt/homebrew/opt/[email protected]/bin/c_rehash
fi
echo 'export PATH="/opt/homebrew/opt/openssl@${{ matrix.openssl }}/bin:$PATH"' >> $HOME/.bash_profile
echo 'export LDFLAGS="-L/opt/homebrew/opt/openssl@${{ matrix.openssl }}/lib"' >> $HOME/.bash_profile
echo 'export CPPFLAGS="-I/opt/homebrew/opt/openssl@@${{ matrix.openssl }}/include"' >> $HOME/.bash_profile
echo 'export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@@${{ matrix.openssl }}/lib/pkgconfig"' >> $HOME/.bash_profile
source $HOME/.bash_profile
/opt/homebrew/opt/openssl@@${{ matrix.openssl }}/bin/c_rehash
- name: Build
run: autoreconf -ivf && PKG_CONFIG_PATH=`brew --prefix openssl@${{ matrix.openssl }}`/lib/pkgconfig ./configure && make

Expand All @@ -132,8 +129,6 @@ jobs:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
brew unlink [email protected] || true
brew unlink pkg-config || true
brew install autoconf automake libtool libevent pkg-config
if ! brew list --versions pkgconf > /dev/null; then
brew install pkgconf
Expand Down

0 comments on commit 4caed2b

Please sign in to comment.