Skip to content

Commit ae5f720

Browse files
committed
ci: Add workaround for Homebrew's python link error
Promoting Homebrew's [email protected] to the default python3 breaks symbolic links on macOS x86_64. This change adds a workaround for that issue. Also see: actions/runner-images#9471 etc.
1 parent 4cc99df commit ae5f720

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ jobs:
9696
- name: Install Homebrew packages
9797
env:
9898
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
99-
run: brew install automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq qt@5 qrencode
99+
run: |
100+
# A workaround for "The `brew link` step did not complete successfully" error.
101+
brew install python@3 || brew link --overwrite python@3
102+
brew install automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq qt@5 qrencode
100103
101104
- name: Set Ccache directory
102105
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)