Commit 44fff58f authored by Leander Schulten's avatar Leander Schulten

Dependencies: Speedup 'build' of boost on mac

parent 936208cb
Pipeline #260963 passed with stage
in 10 minutes and 49 seconds
......@@ -7,19 +7,12 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
echo 'Error: you need brew to install boost. See' >&2
exit 1
if [[ -z "$(brew ls --versions boost)" ]]; then
echo "Installing boost..."
brew install boost
echo "Updating boost..."
brew upgrade boost
if [[ -z "$(brew ls --versions boost-build)" ]]; then
echo "Installing boost-build..."
brew install boost-build
echo "Updating boost-build..."
brew upgrade boost-build
# we use git to check for the newest version, because it is a way faster (1 second vs 10)
echo "Get newest version of boost."
NEWEST_VERSION=$(git ls-remote --tags | grep -ohE \\d\+\.\\d\+\.\\d\+$ | tail -1)
if [ "$(brew ls --versions boost boost-build | grep -c "$NEWEST_VERSION")" -ne "2" ]; then
echo "Installing boost and boost-build. If they are already installed, they get updated"
brew install boost boost-build
echo "Boost installation complete"
elif [[ "$OSTYPE" == "msys" ]] || ! [[ -z "$GITLAB_CI" ]]; then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment