Skip to content

Commit

Permalink
ci(macos): install boost from source
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Dec 31, 2023
1 parent 7640c50 commit 3467a7f
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ jobs:
name: MacOS
runs-on: macos-11
needs: [check_changelog, setup_release]
env:
BOOST_VERSION: 1.83.0

steps:
- name: Checkout
Expand All @@ -514,11 +516,28 @@ jobs:
- name: Setup Dependencies MacOS
run: |
# install dependencies using homebrew
brew install boost cmake curl node opus pkg-config
brew install cmake curl node opus pkg-config
# fix openssl header not found
ln -sf /usr/local/opt/openssl/include/openssl /usr/local/include/openssl
- name: Install Boost
# installing boost from homebrew takes 30 minutes in a GitHub runner
run: |
export BOOST_ROOT=${HOME}/boost-${BOOST_VERSION}
# install boost
wget \
https://github.com/boostorg/boost/releases/download/boost-${BOOST_VERSION}/boost-${BOOST_VERSION}.tar.gz \
--progress=bar:force:noscroll -q --show-progress
tar xf boost-${BOOST_VERSION}.tar.gz
cd boost-${BOOST_VERSION}
./bootstrap.sh --prefix=${BOOST_ROOT} --with-libraries=locale,log,program_options,system,thread
./b2 install link=shared runtime-link=shared variant=release
# put boost in cmake prefix path
echo "BOOST_ROOT=${BOOST_ROOT}" >> ${GITHUB_ENV}
- name: Build MacOS
env:
BRANCH: ${{ github.head_ref || github.ref_name }}
Expand Down

0 comments on commit 3467a7f

Please sign in to comment.