Skip to content

Commit 7ce488b

Browse files
committed
Github workflows : Import OCIO environment variable for tests on Windows
- Recent versions of `OpenImageIO` corrupt data during color conversion with built-in conversions. Using `OpenColorIO` fixes color conversion.
1 parent 381165e commit 7ce488b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ jobs:
182182
scons ${{ matrix.tests }} BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} BUILD_CACHEDIR=sconsCache
183183
env:
184184
IECORE_RTLD_GLOBAL: 0
185+
OCIO: ${{ env.CORTEX_BUILD_NAME }}/openColorIO/config.ocio
185186

186187
- name: Build Package
187188
run: |

.github/workflows/main/options.windows

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ WARNINGS_AS_ERRORS = "1"
7070

7171
# PATH is needed to locate the MSVC compiler. PROCESSOR_ARCHITECTURE and USERNAME
7272
# are needed by the HeaderGenerator and accompanying tests.
73-
ENV_VARS_TO_IMPORT = "PATH PROCESSOR_ARCHITECTURE USERNAME CI"
73+
ENV_VARS_TO_IMPORT = "PATH PROCESSOR_ARCHITECTURE USERNAME CI OCIO"
7474

0 commit comments

Comments
 (0)