From e10d12e0d2540b992ea71a1bda7e5aa62a9db820 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sun, 3 Oct 2021 18:13:56 -0700 Subject: [PATCH] ci: build our own ocio We require the Unicode fix, so until upstream merges it, we must compile it ourselves --- .github/workflows/ci.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 202185f17..b6a1e0132 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -173,7 +173,22 @@ jobs: with: vcpkgGitCommitId: 2a31089e777fc187f1cc05338250b8e1810cfb52 vcpkgTriplet: x64-windows - vcpkgArguments: qt5 ffmpeg openexr openimageio opencolorio portaudio + vcpkgArguments: qt5 ffmpeg openexr openimageio portaudio #opencolorio + + # We require the Unicode fix which hasn't been merged into upstream yet + - name: Acquire OpenColorIO + shell: bash + working-directory: ${{ runner.workspace }} + run: | + git clone https://github.com/olive-editor/OpenColorIO + cd OpenColorIO + git checkout win32-unicode-fix-for-olive-ci + mkdir build + cd build + cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -G "${{ matrix.cmake-gen }}" \ + -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" \ + -DCMAKE_INSTALL_PREFIX="$(pwd)/install" + ninja install - name: Acquire Google Crashpad shell: bash @@ -198,7 +213,7 @@ jobs: DEP_LOCATION: ${{ runner.workspace }}/install working-directory: ${{ runner.workspace }}/build run: | - PATH=$DEP_LOCATION:$DEP_LOCATION/crashpad:$PATH \ + PATH=$DEP_LOCATION:$DEP_LOCATION/crashpad:$GITHUB_WORKSPACE/OpenColorIO/build/install:$PATH \ cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -G "${{ matrix.cmake-gen }}" \ -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"