From b5d744bcae16e986df4690350ad1764956f6c50e Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Fri, 3 Nov 2023 03:35:32 -0700 Subject: [PATCH] ci: Work around macOS GitHub runner pip install failures. (#7110) --- .ci/ios.sh | 5 +++++ .ci/macos.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.ci/ios.sh b/.ci/ios.sh index 92e1776c8..8a0d23497 100755 --- a/.ci/ios.sh +++ b/.ci/ios.sh @@ -1,5 +1,10 @@ #!/bin/bash -ex +# TODO: Work around pip install issues with Python 3.12 in the GitHub runner image. +# See: https://github.com/actions/runner-images/issues/8709 +PYTHON_PATH=$(brew --prefix python@3.11) +export PATH=$PYTHON_PATH/bin:$PYTHON_PATH/libexec/bin:$PATH + mkdir build && cd build cmake .. -GNinja \ -DCMAKE_BUILD_TYPE=Release \ diff --git a/.ci/macos.sh b/.ci/macos.sh index c4e2a284b..99a348730 100755 --- a/.ci/macos.sh +++ b/.ci/macos.sh @@ -1,5 +1,10 @@ #!/bin/bash -ex +# TODO: Work around pip install issues with Python 3.12 in the GitHub runner image. +# See: https://github.com/actions/runner-images/issues/8709 +PYTHON_PATH=$(brew --prefix python@3.11) +export PATH=$PYTHON_PATH/bin:$PYTHON_PATH/libexec/bin:$PATH + mkdir build && cd build cmake .. -GNinja \ -DCMAKE_BUILD_TYPE=Release \