From 069000df0e7e68d4c0ad8b53d74c4e8871868350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Thu, 21 Nov 2024 20:27:23 +0200 Subject: [PATCH] github/workflows: unlink macOS pkg-config if installed This works around an issue with recent Github CI runners. --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb1a8620ac108..bb96fa0debf22 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -233,6 +233,10 @@ jobs: find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete -print brew unlink python && brew link --overwrite python + - name: Unlink pkg-config if the CI runner happens to have it already installed + run: | + brew ls --versions pkg-config && brew unlink pkg-config || : + - name: Change Xcode version if: ${{ matrix.xcode != '' }} run: |