Skip to content

Commit

Permalink
Install OSL latest in analysis CI
Browse files Browse the repository at this point in the history
Signed-off-by: Rémi Achard <remiachard@gmail.com>
  • Loading branch information
remia committed Nov 9, 2021
1 parent d647684 commit b9802da
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/analysis_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
share/ci/scripts/linux/install_openexr.sh latest
share/ci/scripts/linux/install_imath.sh latest
share/ci/scripts/linux/install_oiio.sh latest
share/ci/scripts/linux/install_osl.sh latest
share/ci/scripts/linux/install_openfx.sh latest
- name: Create build directories
run: |
Expand Down
30 changes: 30 additions & 0 deletions share/ci/scripts/linux/install_osl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenColorIO Project.

set -ex

OSL_VERSION="$1"

git clone https://github.com/AcademySoftwareFoundation/OpenShadingLanguage.git
cd OpenShadingLanguage

if [ "$OSL_VERSION" == "latest" ]; then
LATEST_TAG=$(git describe --abbrev=0 --tags)
git checkout tags/${LATEST_TAG} -b ${LATEST_TAG}
else
git checkout tags/Release-${OSL_VERSION} -b Release-${OSL_VERSION}
fi

mkdir build
cd build
cmake -DOSL_BUILD_TESTS=OFF \
-DVERBOSE=ON \
-DSTOP_ON_WARNING=OFF \
-DBoost_NO_BOOST_CMAKE=ON \
../.
make -j4
sudo make install

cd ../..
rm -rf OpenShadingLanguage

0 comments on commit b9802da

Please sign in to comment.