Skip to content

Commit 18619b8

Browse files
authored
ci: On Mac Intel CI variant, don't insall openvdb, for speed (#5065)
Lately, some Mac Intel CI runs have taken forever or failed because of timeout. It appears to be because some packages are maybe not cached (bottled) for Intel anymore? It only happens sometimes, so maybe it fails when the package version has just been bumped, but eventually somebody published a pre-built bottle and then it's ok? openvdb and its dependencies seem to be a frequent culprit. Let's just skip them for this one soon-to-be-obosolete variant. Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent 33c9999 commit 18619b8

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,12 +608,12 @@ jobs:
608608
cc_compiler: clang
609609
cxx_compiler: clang++
610610
cxx_std: 17
611-
python_ver: "3.13"
611+
python_ver: "3.14"
612612
simd: sse4.2,avx2
613613
ctest_test_timeout: 1200
614614
setenvs: export MACOSX_DEPLOYMENT_TARGET=12.0
615-
INSTALL_QT=0 INSTALL_OPENCV=0
616-
optional_deps_append: 'OpenCV;Qt5;Qt6'
615+
INSTALL_QT=0 INSTALL_OPENCV=0 INSTALL_OPENVDB=0
616+
optional_deps_append: 'OpenCV;OpenVDB;Qt5;Qt6'
617617
benchmark: 1
618618
- desc: MacOS-14-ARM aclang15/C++20/py3.13
619619
runner: macos-14

src/build-scripts/install_homebrew_deps.bash

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ if [[ "$OIIO_BREW_INSTALL_PACKAGES" == "" ]] ; then
3232
OIIO_BREW_INSTALL_PACKAGES=" \
3333
ccache \
3434
dcmtk \
35+
expat \
3536
ffmpeg \
3637
imath \
3738
libheif \
@@ -41,7 +42,6 @@ if [[ "$OIIO_BREW_INSTALL_PACKAGES" == "" ]] ; then
4142
opencolorio \
4243
openexr \
4344
openjpeg \
44-
openvdb \
4545
ptex \
4646
pybind11 \
4747
robin-map \
@@ -50,6 +50,9 @@ if [[ "$OIIO_BREW_INSTALL_PACKAGES" == "" ]] ; then
5050
if [[ "${USE_OPENCV:=}" != "0" ]] && [[ "${INSTALL_OPENCV:=1}" != "0" ]] ; then
5151
OIIO_BREW_INSTALL_PACKAGES+=" opencv"
5252
fi
53+
if [[ "${USE_OPENVDB:=1}" != "0" ]] && [[ "${INSTALL_OPENVDB:=1}" != "0" ]] ; then
54+
OIIO_BREW_INSTALL_PACKAGES+=" openvdb"
55+
fi
5356
if [[ "${USE_QT:=1}" != "0" ]] && [[ "${INSTALL_QT:=1}" != "0" ]] ; then
5457
OIIO_BREW_INSTALL_PACKAGES+=" qt${QT_VERSION}"
5558
fi
@@ -62,9 +65,9 @@ brew list --versions
6265

6366
# Set up paths. These will only affect the caller if this script is
6467
# run with 'source' rather than in a separate shell.
65-
export PATH=/usr/local/opt/qt5/bin:$PATH
66-
export PATH=/usr/local/opt/python/libexec/bin:$PATH
67-
export PYTHONPATH=/usr/local/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH
68+
export PATH=${HOMEBREW_PREFIX}/opt/qt5/bin:$PATH
69+
export PATH=${HOMEBREW_PREFIX}/opt/python/libexec/bin:$PATH
70+
export PYTHONPATH=${HOMEBREW_PREFIX}/lib/python${PYTHON_VERSION}/site-packages:$PYTHONPATH
6871

6972
# Save the env for use by other stages
7073
src/build-scripts/save-env.bash

0 commit comments

Comments
 (0)