From 0c4979845a3bac7199c418b72bea641e0c244be4 Mon Sep 17 00:00:00 2001 From: Fuzzbawls Date: Thu, 15 Feb 2024 17:20:08 -0800 Subject: [PATCH] [GA] Link Boost 1.76 regardless of pre-existing version 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. --- .github/workflows/build-and-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index db66717acd28e..02091fc6abc8b 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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 boost@1.76 + brew link --overwrite -f boost@1.76 fi fi