From e966bbbcf78807749fc09e587b7b20cce0b9691a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Thu, 26 Dec 2024 00:35:16 +0100 Subject: [PATCH] [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 --- .github/workflows/ci-macos.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 4473d5ac..3f7197d8 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -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 @@ -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 @@ -49,4 +57,5 @@ jobs: fi - name: meson test run: | + source venv/bin/activate meson test -C mesonbuilddir -v