Skip to content

Commit c420258

Browse files
committed
Fix OSX CI
Boost gets installed into a different path now
1 parent 924734e commit c420258

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test-osx.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
brew install boost
2525
python -m pip install --upgrade pip
2626
python -m pip install setuptools faber
27+
boostDir=/opt/homebrew/Cellar/boost/1.86.0
28+
[[ -d $boostDir ]] || boostDir=/opt/homebrew/Cellar/boost/1.86.0_2
29+
echo "boostDir=$boostDir" >> "$GITHUB_ENV"
2730
- name: build
2831
run: |
2932
python --version
@@ -32,15 +35,15 @@ jobs:
3235
faber -v
3336
sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber
3437
faber \
35-
--with-boost-include=/opt/homebrew/Cellar/boost/1.86.0/include \
38+
--with-boost-include=$boostDir/include \
3639
--builddir=build \
3740
cxx.name=${{ matrix.cxx }} \
3841
cxxflags=-std=${{ matrix.std }} \
3942
-j`sysctl -n hw.ncpu`
4043
- name: test
4144
run: |
4245
faber \
43-
--with-boost-include=/opt/homebrew/Cellar/boost/1.86.0/include \
46+
--with-boost-include=$boostDir/include \
4447
--builddir=build\
4548
cxx.name=${{ matrix.cxx }} \
4649
cxxflags=-std=${{ matrix.std }} \

0 commit comments

Comments
 (0)