@@ -111,6 +111,7 @@ jobs:
111
111
- name : Install dependencies
112
112
run : |
113
113
brew install autoconf automake libtool libevent pkg-config openssl@${{ matrix.openssl }}
114
+ # Handle OpenSSL 3.0 keg-only setup
114
115
if [ "${{ matrix.openssl }}" == "3.0" ]; then
115
116
echo 'export PATH="/opt/homebrew/opt/openssl@3.0/bin:$PATH"' >> $HOME/.bash_profile
116
117
echo 'export LDFLAGS="-L/opt/homebrew/opt/openssl@3.0/lib"' >> $HOME/.bash_profile
@@ -119,7 +120,12 @@ jobs:
119
120
source $HOME/.bash_profile
120
121
/opt/homebrew/opt/openssl@3.0/bin/c_rehash
121
122
fi
122
- brew unlink pkg-config@0.29.2 || true
123
+
124
+ # Handle missing pkg-config or pkgconf
125
+ if ! brew list --versions pkgconf > /dev/null; then
126
+ brew install pkgconf
127
+ fi
128
+ brew unlink pkg-config || true
123
129
brew link --overwrite pkgconf
124
130
- name : Build
125
131
run : autoreconf -ivf && PKG_CONFIG_PATH=`brew --prefix openssl@${{ matrix.openssl }}`/lib/pkgconfig ./configure && make
@@ -134,7 +140,10 @@ jobs:
134
140
- name : Install dependencies
135
141
run : |
136
142
brew install autoconf automake libtool libevent pkg-config
137
- brew unlink pkg-config@0.29.2 || true
143
+ if ! brew list --versions pkgconf > /dev/null; then
144
+ brew install pkgconf
145
+ fi
146
+ brew unlink pkg-config || true
138
147
brew link --overwrite pkgconf
139
148
- name : Install openssl v1.0.2
140
149
run : brew install rbenv/tap/openssl@1.0
0 commit comments