Skip to content

Commit

Permalink
add ubuntu release test shared workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldsmith committed Nov 22, 2023
1 parent 37b0fbc commit 583b353
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ubuntu_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,61 @@ jobs:
working-directory: ${{github.workspace}}/build
run: ctest -V --output-on-failure

test-openexr3-shared:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:

- name: remove ilmbase
run: sudo apt-get --purge remove libilmbase-dev -y

- name: remove openexr
run: sudo apt-get --purge remove libopenexr-dev -y

- name: install dependencies - imath
run: |
cd ..
git clone https://github.com/AcademySoftwareFoundation/Imath.git &&
cd Imath &&
mkdir build &&
cd build &&
cmake -DBUILD_SHARED_LIBS=ON .. &&
make &&
sudo make install
- name: install dependencies - zlib
run: sudo apt-get -y install zlib1g-dev

- name: install dependencies - openexr v3.1
run: |
cd ..
git clone https://github.com/AcademySoftwareFoundation/openexr.git &&
cd openexr &&
git checkout RB-3.1 &&
mkdir build &&
cd build &&
cmake .. -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DOPENEXR_BUILD_TOOLS=OFF -DOPENEXR_INSTALL_EXAMPLES=OFF &&
make &&
sudo make install
- uses: actions/checkout@v3

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_SHARED_LIBS=ON

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -V --output-on-failure

valgrind-openexr2:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
Expand Down

0 comments on commit 583b353

Please sign in to comment.