Skip to content

Commit 38b416c

Browse files
JaredTateclaude
andcommitted
Fix macOS CI builds: Force link Homebrew packages and fix PATH
- Force link all required Homebrew packages when they're already installed - Add autoconf/automake/libtool to PATH to fix 'aclocal not found' error - Allow brew install to fail gracefully with || true 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8c332ce commit 38b416c

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ jobs:
6161
run: |
6262
# A workaround for "The `brew link` step did not complete successfully" error.
6363
brew install python@3 || brew link --overwrite python@3
64-
brew install autoconf automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq qt@5 qrencode
65-
# Ensure Qt5 is properly linked
66-
brew link --force qt@5
64+
brew install autoconf automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq qt@5 qrencode || true
65+
# Force link all required tools
66+
brew link --force --overwrite autoconf automake libtool ccache boost miniupnpc libnatpmp zeromq qt@5 qrencode || true
6767
6868
- name: Set Ccache directory
6969
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
@@ -118,7 +118,8 @@ jobs:
118118

119119
- name: Configure and Build
120120
run: |
121-
# Set Qt5 paths for macOS
121+
# Set paths for macOS tools
122+
export PATH="$(brew --prefix)/bin:$(brew --prefix)/opt/automake/bin:$(brew --prefix)/opt/autoconf/bin:$(brew --prefix)/opt/libtool/bin:$PATH"
122123
export Qt5_DIR="$(brew --prefix qt@5)"
123124
export PATH="$Qt5_DIR/bin:$PATH"
124125
export PKG_CONFIG_PATH="$Qt5_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"
@@ -197,9 +198,9 @@ jobs:
197198
run: |
198199
# A workaround for "The `brew link` step did not complete successfully" error.
199200
brew install python@3 || brew link --overwrite python@3
200-
brew install autoconf automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq qt@5 qrencode
201-
# Ensure Qt5 is properly linked
202-
brew link --force qt@5
201+
brew install autoconf automake libtool pkg-config gnu-getopt ccache boost libevent miniupnpc libnatpmp zeromq qt@5 qrencode || true
202+
# Force link all required tools
203+
brew link --force --overwrite autoconf automake libtool ccache boost miniupnpc libnatpmp zeromq qt@5 qrencode || true
203204
204205
- name: Set Ccache directory
205206
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
@@ -254,7 +255,8 @@ jobs:
254255

255256
- name: Configure and Build
256257
run: |
257-
# Set Qt5 paths for macOS
258+
# Set paths for macOS tools
259+
export PATH="$(brew --prefix)/bin:$(brew --prefix)/opt/automake/bin:$(brew --prefix)/opt/autoconf/bin:$(brew --prefix)/opt/libtool/bin:$PATH"
258260
export Qt5_DIR="$(brew --prefix qt@5)"
259261
export PATH="$Qt5_DIR/bin:$PATH"
260262
export PKG_CONFIG_PATH="$Qt5_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"

0 commit comments

Comments
 (0)