From 91f54d4bae20a109382c913340b4c67da781f4e0 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 3 May 2024 00:15:38 +0300 Subject: [PATCH] [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. --- .github/workflows/linux-ci.yml | 4 ++++ .github/workflows/macos-ci.yml | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index f9a1d68fb..a04c5bcdd 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -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 diff --git a/.github/workflows/macos-ci.yml b/.github/workflows/macos-ci.yml index f2ddce325..25901c73c 100644 --- a/.github/workflows/macos-ci.yml +++ b/.github/workflows/macos-ci.yml @@ -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 \