Skip to content

Commit

Permalink
CI: Fix macOS build
Browse files Browse the repository at this point in the history
If Python is installed/updated without "--overwrite",
conflict errors occur because Homebrew tries to replace
existing files like "/usr/local/bin/2to3".

See also:
- actions/runner-images#9966
  • Loading branch information
radioactiveman committed Aug 19, 2024
1 parent db5560e commit c277728
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/install-dependencies/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ case "$os" in
;;

macos*)
# Pre-installed Python conflicts with Homebrew Python
# https://github.com/actions/runner-images/issues/9966
brew install --overwrite python@3.12

if [ "$build_system" = 'meson' ]; then
brew install $macos_packages qt@6 meson
else
Expand Down

0 comments on commit c277728

Please sign in to comment.