Skip to content

Commit

Permalink
Build boost with homebrew clang in CI
Browse files Browse the repository at this point in the history
Build boost insteads on installing it with brew
  • Loading branch information
p-senichenkov committed Dec 21, 2024
1 parent 37233d3 commit 1b66438
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/composite-actions/download-libraries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ inputs:
description: 'Install boost built with clang'
default: false

install-boost-brew-clang:
type: boolean
description: 'Install boost built with Homebrew Clang'
default: false

install-gcc:
type: boolean
description: 'Install GCC toolset (compiler and build tools)'
Expand Down Expand Up @@ -116,6 +121,17 @@ runs:
sudo ./b2 install --prefix=/usr
shell: bash
if: inputs.install-boost-clang != 'false'
- name: Install Boost built with Homebrew Clang
# b2 doesn't recognize custom compilers, so some trick is needed:
run: |
cd lib/boost
export PATH=$(brew --prefix llvm@17)/bin:$PATH
./bootstrap.sh --prefix=/usr --with-toolset=clang
./b2 clean
./b2 toolset=clang cxxflags="-std=c++11 -stdlib=libc++" linkflags="-stdlib=libc++"
sudo ./b2 install --prefix=/usr
shell: bash
if: inputs.install-boost-brew-clang != 'false'
- name: Download frozen
uses: ./.github/composite-actions/download-library
with:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,17 @@ jobs:
- { BUILD_TYPE: Debug, SANITIZER : UB }
steps:
- uses: actions/checkout@v3
- name: Download libraries
run: brew install llvm@17 make boost
- name: Download build system
run: brew install llvm@17 make
shell: bash
- name: Download libraries
uses: ./.github/composite-actions/download-libraries
with:
install-gcc: false
install-clang: false
install-boost-gcc: false
install-boost-clang: false
install-boost-brew-clang: true
- name: Download datasets
uses: ./.github/composite-actions/download-datasets
- name: Build
Expand Down

0 comments on commit 1b66438

Please sign in to comment.