[ci] Try to fix pip install on macOS runner

Use setup-python action which which I think uses venv so pip install
will not fail as now installing system-wide packages with pip is
disallowed.
This commit is contained in:
Khaled Hosny 2024-05-03 00:15:38 +03:00 committed by خالد حسني (Khaled Hosny)
parent ba1f194a1d
commit 91f54d4bae
2 changed files with 10 additions and 1 deletions

View file

@ -38,6 +38,10 @@ jobs:
pkg-config \
python3 \
python3-setuptools
- name: Setup Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.x'
- name: Install Python Dependencies
run: sudo pip3 install -r .ci/requirements.txt --require-hashes
- name: Setup Meson

View file

@ -34,11 +34,16 @@ jobs:
meson \
ninja \
pkg-config
- name: Setup Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.x'
- name: Install Python Dependencies
run: pip3 install -r .ci/requirements.txt --require-hashes
- name: Setup Meson
env:
PKG_CONFIG_PATH: "/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig"
run: |
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig"
ccache --version
meson setup build \
-Dauto_features=enabled \