Skip to content

Commit 3f4fe8d

Browse files
committed
add conan toolchain
Signed-off-by: Anton Dukhovnikov <[email protected]>
1 parent 01c866c commit 3f4fe8d

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/build-steps.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ jobs:
7979
if: inputs.vfxyear > 2023
8080
shell: bash
8181
run: |
82-
yum install -y json-devel
82+
conan profile detect --force
83+
conan install . --output-folder=build --build=missing
84+
#yum install -y json-devel
8385
python -m pip install nanobind pytest
8486
8587
- name: Configure CMake

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
vfxyear: ${{ matrix.vfxyear || 0 }}
2424
ceres_hack: ${{ matrix.ceres_hack || 'OFF' }}
2525
test_install: ${{ matrix.test_install || 'ON' }}
26+
toolchain_file: ${{ matrix.toolchain_file }}
2627

2728
strategy:
2829
# 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.
@@ -41,10 +42,13 @@ jobs:
4142
container: aswf/ci-osl:2023-clang15
4243
- vfxyear: 2024
4344
container: aswf/ci-rawtoaces:2024.4
45+
toolchain_file: "build/conan_toolchain.cmake"
4446
- vfxyear: 2025
4547
container: aswf/ci-rawtoaces:2025.3
48+
toolchain_file: "build/conan_toolchain.cmake"
4649
- vfxyear: 2026
4750
container: aswf/ci-rawtoaces:2026.1
51+
toolchain_file: "build/conan_toolchain.cmake"
4852

4953
build:
5054
name: "${{matrix.os}} ${{matrix.c_compiler}}"

conanfile.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[requires]
2+
nlohmann_json/3.11.3
3+
nanobind/2.9.2
4+
5+
[generators]
6+
CMakeDeps
7+
CMakeToolchain

0 commit comments

Comments
 (0)