Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
CI: Install a newer version of texinfo for macOS
Browse files Browse the repository at this point in the history
This fixes the makeinfo errors in binutils on macOS.
  • Loading branch information
marcus-geelnard committed Mar 6, 2023
1 parent 2607e73 commit 5bd76bc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ jobs:
autoconf automake bison bzip2 curl dos2unix flex
gawk gzip libzstd-devel make p7zip perl tar texinfo
- name: Install macOS packages
if: ${{ runner.os == 'macOS' }}
run: |
brew update
brew install texinfo
- name: Build toolchain
env:
CC: "${{ matrix.config.cc }}"
Expand All @@ -90,6 +96,12 @@ jobs:
find ./ext -iname "*.texi" -exec dos2unix -q '{}' \;
fi
# Override the antiquated system makeinfo on macOS with the one installed by brew.
# This solves build errors in the binutils/bfd documentation (2023-02-07).
if [ "${{ runner.os }}" == "macOS" ] ; then
export PATH="/usr/local/opt/texinfo/bin:$PATH"
fi
if [ "${{ matrix.config.build_type }}" == "docker" ] ; then
./build-in-docker.sh
else
Expand Down

0 comments on commit 5bd76bc

Please sign in to comment.