Skip to content

Commit e966bbb

Browse files
committed
[build] fix ci-macos: pycurl, libev, keg-only packages
* don't install keg-only packages, use system ones instead (seems to work) * need to install pycurl in venv (test uses python3, which comes from brew, which doesn't allow global pip3 install). brew python-pycurl package is gone too. * add manual paths to help meson find libev Change-Id: Ia80aba027ab287a66df1f0acd99cad9b35ae2519
1 parent 2306c26 commit e966bbb

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/ci-macos.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ concurrency:
66
group: ${{github.workflow}}-${{github.head_ref}}
77
cancel-in-progress: true
88

9+
env:
10+
C_INCLUDE_PATH: /opt/homebrew/opt/libev/include
11+
LIBRARY_PATH: /opt/homebrew/opt/libev/lib
12+
913
jobs:
1014
macOS:
1115
runs-on: macos-latest
@@ -18,17 +22,21 @@ jobs:
1822
libev
1923
ragel
2024
glib
21-
lua@5.1
22-
zlib
23-
bzip2
25+
lua@5.4
26+
# zlib # keg-only
27+
# bzip2 # keg-only
2428
openssl@3
2529
gnutls
2630
libidn
2731
python3
28-
python-pycurl
2932
md5sha1sum
3033
)
3134
brew install "${pkgs[@]}"
35+
- name: python venv setup
36+
run: |
37+
python3 -m venv venv
38+
venv/bin/pip3 install pycurl
39+
venv/bin/python3 -c 'import pycurl'
3240
- name: meson setup
3341
run: meson setup -D unwind=false mesonbuilddir
3442
- name: meson compile
@@ -49,4 +57,5 @@ jobs:
4957
fi
5058
- name: meson test
5159
run: |
60+
source venv/bin/activate
5261
meson test -C mesonbuilddir -v

0 commit comments

Comments
 (0)