|
97 | 97 | pyqt6-ver: '!=6.6.0'
|
98 | 98 | # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
|
99 | 99 | pyside6-ver: '!=6.5.1'
|
100 |
| - - os: macos-12 # This runner is on Intel chips. |
| 100 | + - os: macos-13 # This runner is on Intel chips. |
101 | 101 | python-version: '3.10'
|
102 | 102 | # https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-2346
|
103 | 103 | pyside6-ver: '!=6.5.1'
|
@@ -188,13 +188,18 @@ jobs:
|
188 | 188 | ;;
|
189 | 189 | macOS)
|
190 | 190 | brew update
|
191 |
| - export HOMEBREW_NO_INSTALL_UPGRADE=1 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 |
192 |
| - brew install ccache ghostscript ninja |
193 |
| - # The macOS 12 images have an older Python, and this causes homebrew to generate conflicts. |
194 |
| - # We'll just skip GTK for now, to not pull in Python updates. |
195 |
| - if [[ "${{ matrix.os }}" = macos-14 ]]; then |
196 |
| - brew install gobject-introspection gtk4 |
197 |
| - fi |
| 191 | + # Periodically, Homebrew updates Python and fails to overwrite the |
| 192 | + # existing not-managed-by-Homebrew copy without explicitly being told |
| 193 | + # to do so. GitHub/Azure continues to avoid fixing their runner images: |
| 194 | + # https://github.com/actions/runner-images/issues/9966 |
| 195 | + # so force an overwrite even if there are no Python updates. |
| 196 | + # We don't even care about Homebrew's Python because we use the one |
| 197 | + # from actions/setup-python. |
| 198 | + for python_package in $(brew list | grep python@); do |
| 199 | + brew unlink ${python_package} |
| 200 | + brew link --overwrite ${python_package} |
| 201 | + done |
| 202 | + brew install ccache ghostscript gobject-introspection gtk4 ninja |
198 | 203 | brew install --cask font-noto-sans-cjk inkscape
|
199 | 204 | ;;
|
200 | 205 | esac
|
|
0 commit comments