diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 38907881d2c..0a75a6bbce6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 @@ -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 }}