Skip to content

Commit 0c49798

Browse files
committed
[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.
1 parent ea3d1d6 commit 0c49798

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ jobs:
115115
fi
116116
if [[ ${{ matrix.config.os }} = macos* ]]; then
117117
brew install "$APT_BASE" ${{ matrix.config.packages }}
118-
# GA's macOS 11 image has recently started leaking the pre-installed boost libraries
119-
# despite us setting an explicit path. Temp workaround is to unlink the pre-installed version
118+
# GA's macOS 11 image is inconsistent as to if it includes a pre-installed version of boost. Force linking
119+
# to the specified version (1.76), which will overwrite the symlinks to a pre-existing version if it exists.
120120
if [ "${{ matrix.config.os }}" = "macos-11" ]; then
121-
brew unlink boost && brew link --overwrite -f [email protected]
121+
brew link --overwrite -f [email protected]
122122
fi
123123
fi
124124

0 commit comments

Comments
 (0)