Skip to content

Commit

Permalink
[build] fix ci-macos: pycurl, libev, keg-only packages
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
stbuehler committed Jan 5, 2025
1 parent 2306c26 commit e966bbb
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: true

env:
C_INCLUDE_PATH: /opt/homebrew/opt/libev/include
LIBRARY_PATH: /opt/homebrew/opt/libev/lib

jobs:
macOS:
runs-on: macos-latest
Expand All @@ -18,17 +22,21 @@ jobs:
libev
ragel
glib
lua@5.1
zlib
bzip2
lua@5.4
# zlib # keg-only
# bzip2 # keg-only
openssl@3
gnutls
libidn
python3
python-pycurl
md5sha1sum
)
brew install "${pkgs[@]}"
- name: python venv setup
run: |
python3 -m venv venv
venv/bin/pip3 install pycurl
venv/bin/python3 -c 'import pycurl'
- name: meson setup
run: meson setup -D unwind=false mesonbuilddir
- name: meson compile
Expand All @@ -49,4 +57,5 @@ jobs:
fi
- name: meson test
run: |
source venv/bin/activate
meson test -C mesonbuilddir -v

0 comments on commit e966bbb

Please sign in to comment.