From 64a865288c4b1c6e4100cddf2caa2b27996185a3 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Sat, 21 Mar 2026 15:54:39 -0700 Subject: [PATCH] ci: optimize openexr build time, don't run nightly on forks * When building openexr as a dependency for OSL, there is no need to build the openexr command line utilities, saving a bit of build time. * Fix an error from PR #2074 where we tried to disable nightly CI runs on forks -- we didn't make the right change to the Windows jobs, so they were still running. Signed-off-by: Larry Gritz --- .github/workflows/ci.yml | 2 +- src/build-scripts/build_openexr.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6f6ea3d9d..77607baca4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -566,7 +566,7 @@ jobs: windows: - if: ${{ ! contains(github.ref, 'linux-only') && ! contains(github.ref, 'macos-only') && ! contains(github.ref, 'optix-only') }} + if: ${{ (github.event.repository.fork == false || github.event_name != 'schedule') && ! contains(github.ref, 'linux-only') && ! contains(github.ref, 'macos-only') && ! contains(github.ref, 'optix-only') }} name: "${{matrix.desc}}" uses: ./.github/workflows/build-steps.yml with: diff --git a/src/build-scripts/build_openexr.bash b/src/build-scripts/build_openexr.bash index 06d66fa903..c1b53928a0 100755 --- a/src/build-scripts/build_openexr.bash +++ b/src/build-scripts/build_openexr.bash @@ -46,7 +46,7 @@ cmake -S ${OPENEXR_SOURCE_DIR} -B ${OPENEXR_BUILD_DIR} \ -DCMAKE_INSTALL_PREFIX="${OPENEXR_INSTALL_DIR}" \ -DCMAKE_PREFIX_PATH="${CMAKE_PREFIX_PATH}" \ -DBUILD_SHARED_LIBS=${OpenEXR_LOCAL_BUILD_SHARED_LIBS:=ON} \ - -DOPENEXR_BUILD_UTILS=0 \ + -DOPENEXR_BUILD_TOOLS=0 \ -DBUILD_TESTING=0 \ -DOPENEXR_VIEWERS_ENABLE=0 \ -DINSTALL_OPENEXR_EXAMPLES=0 \