Skip to content

Commit c6f9e1f

Browse files
greggdonovanclaude
andcommitted
Fix macOS CI: add homebrew bison to GITHUB_PATH
The system bison (2.3) doesn't support the %code directive. Add homebrew's bison to GITHUB_PATH so it persists across all steps. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c17d8e1 commit c6f9e1f

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,13 @@ jobs:
8686
- name: Install dependencies
8787
run: |
8888
brew install automake bison flex boost libevent openssl libtool pkg-config
89+
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
8990
9091
- name: Run bootstrap
9192
run: ./bootstrap.sh
9293

9394
- name: Run configure
94-
run: |
95-
export PATH="$(brew --prefix bison)/bin:$PATH"
96-
./configure --disable-debug --disable-tests --disable-libs
95+
run: ./configure --disable-debug --disable-tests --disable-libs
9796

9897
- name: Run make
9998
run: make -j$(sysctl -n hw.ncpu)
@@ -597,6 +596,7 @@ jobs:
597596
- name: Install dependencies
598597
run: |
599598
brew install automake bison flex boost libevent openssl libtool pkg-config
599+
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
600600
601601
- name: Set up Python
602602
uses: actions/setup-python@v6
@@ -613,9 +613,7 @@ jobs:
613613
run: ./bootstrap.sh
614614

615615
- name: Run configure
616-
run: |
617-
export PATH="$(brew --prefix bison)/bin:$PATH"
618-
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-py3/with-py3/')
616+
run: ./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-py3/with-py3/')
619617

620618
- uses: actions/download-artifact@v6
621619
with:

0 commit comments

Comments
 (0)