From 7803db22a062be3cdce760cd6ff7e54b121117ed Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Fri, 25 Aug 2023 13:51:30 -0400 Subject: [PATCH] github: remove symlinks to apple-provided python See https://github.com/actions/setup-python/issues/577. --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5df61008..23fda7fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -198,9 +198,10 @@ jobs: run: | set -euxo pipefail brew update - brew install dpkg findutils gnu-tar llvm pkg-config - # Workaround for https://github.com/Homebrew/homebrew-core/pull/139492. - brew reinstall qemu + # https://github.com/actions/setup-python/issues/577 + find /usr/local/bin -type l -exec sh -c 'readlink -f "$1" \ + | grep -q ^/Library/Frameworks/Python.framework/Versions/' _ {} \; -exec rm -v {} \; + brew install dpkg findutils gnu-tar llvm pkg-config qemu echo /usr/local/opt/findutils/libexec/gnubin >> $GITHUB_PATH echo /usr/local/opt/gnu-tar/libexec/gnubin >> $GITHUB_PATH echo /usr/local/opt/llvm/bin >> $GITHUB_PATH