Skip to content

Commit c2b179f

Browse files
authored
Merge pull request #1898 from danrbailey/fix_macos_houdini
Fix MacOS Houdini Build
2 parents 8340096 + 1ac05f2 commit c2b179f

File tree

7 files changed

+28
-9
lines changed

7 files changed

+28
-9
lines changed

.github/workflows/ax.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ jobs:
134134
steps:
135135
- uses: actions/checkout@v3
136136
- name: install_deps
137-
run: ./ci/install_macos.sh ${{ matrix.config.llvm }}
137+
run: |
138+
./ci/install_macos.sh ${{ matrix.config.llvm }}
139+
./ci/install_tbb_macos.sh
138140
- name: build
139141
run: >
140142
./ci/build.sh -v

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ jobs:
197197
steps:
198198
- uses: actions/checkout@v3
199199
- name: install
200-
run: ./ci/install_macos.sh
200+
run: |
201+
./ci/install_macos.sh
202+
./ci/install_tbb_macos.sh
201203
- name: build
202204
run: >
203205
./ci/build.sh -v

.github/workflows/houdini.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,21 +162,22 @@ jobs:
162162
cp hou/hou.tar.gz $HOME/houdini_install/hou.tar.gz
163163
cd $HOME/houdini_install && tar -xzf hou.tar.gz && cd -
164164
- name: install_deps
165-
run: ./ci/install_macos.sh ${{ matrix.config.llvm }}
165+
run: ./ci/install_macos.sh 15
166166
- name: build
167167
run: |
168168
./ci/build.sh -v \
169169
--build-type=Release \
170-
--components="core,hou,bin,view,render,python,test,axcore,axbin,axtest" \
170+
--components="core,hou,bin,view,render,python,test,axcore,axbin" \
171171
--cargs=\" \
172172
-DHOUDINI_ROOT=$HOME/houdini_install/hou \
173173
-DOPENVDB_BUILD_HOUDINI_ABITESTS=OFF \
174174
-DOPENVDB_HOUDINI_INSTALL_PREFIX=/tmp \
175175
-DDISABLE_CMAKE_SEARCH_PATHS=ON \
176176
-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON \
177177
-DUSE_EXPLICIT_INSTANTIATION=OFF \
178-
-DLLVM_DIR=/usr/local/opt/llvm@15/lib/cmake/llvm \
179-
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install
178+
-DTbb_INCLUDE_DIR=$HOME/houdini_install/hou/Frameworks/Houdini.framework/Versions/Current/Resources/toolkit/include/tbb \
179+
-DLLVM_DIR=/opt/homebrew/opt/llvm@15/lib/cmake/llvm \
180+
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install \
180181
\"
181182
- name: test
182183
run: cd build && ctest -V

.github/workflows/nanovdb.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ jobs:
167167
steps:
168168
- uses: actions/checkout@v3
169169
- name: install_deps
170-
run: ./ci/install_macos.sh
170+
run: |
171+
./ci/install_macos.sh
172+
./ci/install_tbb_macos.sh
171173
- name: build
172174
run: >
173175
./ci/build.sh -v

.github/workflows/weekly.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ jobs:
216216
sudo apt-get -q install -y libboost-dev libboost-iostreams-dev libtbb-dev libblosc-dev llvm-dev libgtest-dev libcppunit-dev pybind11-dev
217217
elif [ "$RUNNER_OS" == "macOS" ]; then
218218
./ci/install_macos.sh 15
219+
./ci/install_tbb_macos.sh
219220
else
220221
echo "$RUNNER_OS not supported"; exit 1
221222
fi
@@ -317,7 +318,9 @@ jobs:
317318
steps:
318319
- uses: actions/checkout@v3
319320
- name: install_deps
320-
run: ./ci/install_macos.sh ${{ matrix.config.llvm }}
321+
run: |
322+
./ci/install_macos.sh ${{ matrix.config.llvm }}
323+
./ci/install_tbb_macos.sh
321324
- name: build
322325
run: >
323326
./ci/build.sh -v

ci/install_macos.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ brew install googletest
1919
brew install jq # for trivial parsing of brew json
2020
brew install openexr
2121
brew install pybind11 # also installs the dependent python version
22-
brew install tbb
2322
brew install zlib
2423
brew install jemalloc
2524

@@ -31,6 +30,10 @@ echo "Using python $py_version"
3130
echo "Python_ROOT_DIR=/usr/local/opt/$py_version" >> $GITHUB_ENV
3231
echo "/usr/local/opt/$py_version/bin" >> $GITHUB_PATH
3332

33+
# use bash
34+
echo "/usr/local/opt/bash/bin" >> $GITHUB_PATH
35+
echo "/opt/homebrew/opt/bash/bin" >> $GITHUB_PATH
36+
3437
# use gnu-getopt
3538
echo "/usr/local/opt/gnu-getopt/bin" >> $GITHUB_PATH
3639
echo "/opt/homebrew/opt/gnu-getopt/bin" >> $GITHUB_PATH

ci/install_tbb_macos.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
set -x
4+
5+
brew update
6+
brew install tbb

0 commit comments

Comments
 (0)