Skip to content

fix: change hardcoded size to set size at runtime #340

fix: change hardcoded size to set size at runtime

fix: change hardcoded size to set size at runtime #340

Workflow file for this run

# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CI
permissions:
contents: read
on:
push:
#branches: [ "master" ]
pull_request:
#branches: [ "master" ]
jobs:
aswf_old:
name: "VFX${{matrix.vfxyear}} ${{matrix.desc}}"
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
matrix:
include:
- desc: gcc11
nametag: linux-vfx2022-gcc11
os: ubuntu-latest
container: aswf/ci-osl:2022-clang11.10
vfxyear: 2022
cxx_std: 17
- desc: clang14
nametag: linux-vfx2022-clang14
os: ubuntu-latest
container: aswf/ci-osl:2022-clang11.10
vfxyear: 2022
cc_compiler: clang
cxx_compiler: clang++
cxx_std: 17
runs-on: ${{ matrix.os }}
container:
image: ${{ matrix.container }}
volumes:
- /node20217:/node20217:rw,rshared
- /node20217:/__e/node20:ro,rshared
env:
CXX: ${{matrix.cxx_compiler}}
CC: ${{matrix.cc_compiler}}
OPENEXR_VERSION: ${{matrix.openexr_ver}}
steps:
- name: install nodejs20glibc2.17
run: |
curl --silent https://unofficial-builds.nodejs.org/download/release/v20.18.1/node-v20.18.1-linux-x64-glibc-217.tar.xz | tar -xJ --strip-components 1 -C /node20217 -f -
- name: Checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: '0'
- name: Yum config
shell: bash
run: |
yum-config-manager --disable centos-sclo-rh || true
sed -i 's,^mirrorlist=,#,; s,^#baseurl=http://mirror\.centos\.org/centos/$releasever,baseurl=https://vault.centos.org/7.9.2009,' /etc/yum.repos.d/CentOS-Base.repo
- name: Dependencies
shell: bash
run: |
sudo yum install --setopt=tsflags=nodocs -y eigen3-devel ceres-solver-devel json-devel
- 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 build
-S .
-D RTA_CENTOS7_CERES_HACK=ON
-D CMAKE_CXX_STANDARD=${{matrix.cxx_std}}
- name: Build
run: |
sudo cmake --build build --config Release
- name: Test
working-directory: build
run: >
ctest
--build-config Release
--rerun-failed
--output-on-failure
aswf:
name: "VFX${{matrix.vfxyear}} ${{matrix.desc}}"
runs-on: ${{ matrix.os }}
container:
image: ${{ matrix.container }}
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
matrix:
include:
- desc: gcc11 # /C++17 boost1.8 exr3.1
nametag: linux-vfx2023
os: ubuntu-latest
container: aswf/ci-osl:2023-clang15
vfxyear: 2023
c_compiler: gcc
cpp_compiler: g++
cxx_std: 17
- desc: clang15 # /C++17 boost1.8 exr3.1
nametag: linux-vfx2022-clang15
os: ubuntu-latest
container: aswf/ci-osl:2023-clang15
vfxyear: 2023
c_compiler: clang
cpp_compiler: clang++
cxx_std: 17
- desc: gcc11
nametag: linux-vfx2024
os: ubuntu-latest
container: aswf/ci-osl:2024-clang17.2
vfxyear: 2024
c_compiler: gcc
cpp_compiler: g++
cxx_std: 17
- desc: clang17
nametag: linux-vfx2024-clang17
os: ubuntu-latest
container: aswf/ci-osl:2024-clang17.2
vfxyear: 2024
c_compiler: clang
cpp_compiler: clang++
cxx_std: 17
env:
CXX: ${{matrix.cpp_compiler}}
CC: ${{matrix.c_compiler}}
steps:
- uses: actions/checkout@v4
- name: Print
shell: bash
run: |
echo "CXX=${CXX}"
echo "matrix.cxx_compiler=${{matrix.cxx_compiler}}"
yum search ceres-solver
- name: Dependencies
shell: bash
run: |
sudo yum install --setopt=tsflags=nodocs -y eigen3-devel ceres-solver-devel json-devel
- 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 build -S .
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/install
-D CMAKE_CXX_STANDARD=${{matrix.cxx_std}}
- name: Build
run: |
sudo cmake --build build
sudo cmake --install build
- name: Test
working-directory: build
run: ctest --rerun-failed --output-on-failure
- name: Configure config_tests
run: >
cmake
-B build_config_test
-S ./tests/config_tests
-D RAWTOACES_DIR=${{ github.workspace }}/install/lib/cmake/RAWTOACES
-D CMAKE_CXX_STANDARD=${{matrix.cxx_std}}
- name: Build config_tests
run: >
cmake --build build_config_test --config Release
- name: Test config_tests
run: >
ctest
--build-config Release
--rerun-failed
--output-on-failure
--test-dir build_config_test
##################################
build:
runs-on: ${{ matrix.os }}
name: "${{matrix.os}} ${{matrix.c_compiler}}"
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
matrix:
include:
- os: windows-latest
c_compiler: cl
cpp_compiler: cl
install_deps: install_deps_windows
toolchain_file: "C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
build_shared_libs: OFF
- os: ubuntu-latest
c_compiler: gcc
cpp_compiler: g++
install_deps: install_deps_linux
build_shared_libs: ON
- os: ubuntu-latest
c_compiler: clang
cpp_compiler: clang++
install_deps: install_deps_linux
build_shared_libs: ON
- os: macos-latest
c_compiler: clang
cpp_compiler: clang++
install_deps: install_deps_mac
build_shared_libs: ON
env:
CXX: ${{matrix.cpp_compiler}}
CC: ${{matrix.c_compiler}}
steps:
- uses: actions/checkout@v4
- name: Dependencies
shell: bash
run: |
build_scripts/${{ matrix.install_deps }}.bash
- 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 build
-S ${{ github.workspace }}
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/install
-D CMAKE_CXX_STANDARD=17
-D CMAKE_TOOLCHAIN_FILE="${{ matrix.toolchain_file }}"
-D ENABLE_SHARED="${{ matrix.build_shared_libs }}"
- name: Build
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: |
cmake --build build --config Release
cmake --install build
- name: Test
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
working-directory: build
run: ctest --build-config Release --rerun-failed --output-on-failure
- name: Configure config_tests
run: >
cmake
-B build_config_test
-S ${{ github.workspace }}/tests/config_tests
-D RAWTOACES_DIR=${{ github.workspace }}/install/lib/cmake/RAWTOACES
-D CMAKE_TOOLCHAIN_FILE="${{ matrix.toolchain_file }}"
-D CMAKE_CXX_STANDARD=17
- name: Build config_tests
run: >
cmake --build build_config_test --config Release
- name: Test config_tests
run: >
ctest
--build-config Release
--rerun-failed
--output-on-failure
--test-dir build_config_test