Skip to content

Commit

Permalink
[GA] Link Boost 1.76 regardless of pre-existing version
Browse files Browse the repository at this point in the history
GA's macos-11 runner images have been inconsistent in their inclusion of
 a pre-installed version of the Boost library, and trying to gracefully
 unlink a non-existent package results in an error.

Skip the unlink step and just force overwrite linking boost 1.76.
  • Loading branch information
Fuzzbawls committed Feb 16, 2024
1 parent ea3d1d6 commit 0c49798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ jobs:
fi
if [[ ${{ matrix.config.os }} = macos* ]]; then
brew install "$APT_BASE" ${{ matrix.config.packages }}
# GA's macOS 11 image has recently started leaking the pre-installed boost libraries
# despite us setting an explicit path. Temp workaround is to unlink the pre-installed version
# GA's macOS 11 image is inconsistent as to if it includes a pre-installed version of boost. Force linking
# to the specified version (1.76), which will overwrite the symlinks to a pre-existing version if it exists.
if [ "${{ matrix.config.os }}" = "macos-11" ]; then
brew unlink boost && brew link --overwrite -f [email protected]
brew link --overwrite -f [email protected]
fi
fi
Expand Down

0 comments on commit 0c49798

Please sign in to comment.