CI: fix build on MacOS-13 runners (#2343)
Workaroud for Homebrew's python link error See: https://github.com/Homebrew/homebrew-core/issues/165793#issuecomment-1991817938
This commit is contained in:
@@ -284,6 +284,11 @@ jobs:
|
|||||||
- name: Installing MacOS prerequisites
|
- name: Installing MacOS prerequisites
|
||||||
if: startsWith(matrix.os, 'macOS') && startsWith(matrix.arch, 'x86_64')
|
if: startsWith(matrix.os, 'macOS') && startsWith(matrix.arch, 'x86_64')
|
||||||
run: |
|
run: |
|
||||||
|
# A workaround for "The `brew link` step did not complete successfully" error.
|
||||||
|
# See https://github.com/Homebrew/homebrew-core/issues/165793#issuecomment-1991817938
|
||||||
|
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
|
||||||
|
sudo rm -rf /Library/Frameworks/Python.framework/
|
||||||
|
brew install --force python3 && brew unlink python3 && brew unlink python3 && brew link --overwrite python3
|
||||||
brew install coreutils wdiff colordiff autoconf automake libtool pkg-config gettext json-c rrdtool
|
brew install coreutils wdiff colordiff autoconf automake libtool pkg-config gettext json-c rrdtool
|
||||||
- name: Install MacOS Prerequisites (libgcrypt)
|
- name: Install MacOS Prerequisites (libgcrypt)
|
||||||
if: startsWith(matrix.os, 'macOS') && startsWith(matrix.arch, 'x86_64') && startsWith(matrix.gcrypt, '--with-local-libgcrypt')
|
if: startsWith(matrix.os, 'macOS') && startsWith(matrix.arch, 'x86_64') && startsWith(matrix.gcrypt, '--with-local-libgcrypt')
|
||||||
|
|||||||
Reference in New Issue
Block a user