Commit 98bcf85
committed
Add conda package testing to CI and fix CMake package configuration
This commit adds automated testing of the conda package to ensure that
downstream users can successfully use vira via find_package(vira).
CI/Workflow Changes:
- Rename build.yml to ci-cd.yml (and workflow name to "CI/CD Pipeline")
- Restrict workflow to only run on main branch and PRs to main
- Add conda-test-{linux,macos,windows} jobs that build a minimal test
project against the installed conda package
- Use artifacts to pass built conda packages between build and test jobs
- Configure proper conda environment activation in test jobs
- Fix Windows local channel path using cygpath for proper file:// URLs
- Add "CI" gate job that depends on all other jobs for simplified
branch protection (only need to require single "CI" status check)
Conda Recipe Fixes (dependencies/recipe/):
- Add explicit CMAKE_INSTALL_PREFIX to build.sh and bld.bat
- Disable optional build targets (tools, examples, tests, scratch, docs)
- Add all development dependencies to run requirements (header-only
library requires -devel packages for downstream compilation)
- Add cmake config file existence tests to meta.yaml
CMake Package Configuration Fixes:
- Rename config files to lowercase (viraConfig.cmake, viraTargets.cmake)
for proper find_package(vira) discovery
- Add VIRA_INSTALL_CMAKEDIR to PATH_VARS in configure_package_config_file
- Add missing find_dependency calls for indicators, plog, termcolor, cspice
- Install ViraFetch*.cmake helpers for downstream dependency resolution
- Create stb::stb target before including viraTargets.cmake
CMake Install Fixes:
- Install ViraFetch{Indicators,Plog,Termcolor,CSPICE}.cmake helper modules
to allow downstream projects to find dependencies
- Fix ViraFetchSTB.cmake to install headers to include root (not stb/
subdirectory) to match build-time include paths
Test Infrastructure:
- Add tests/packaging/CMakeLists.txt with minimal find_package test
- Add tests/packaging/main.cpp that includes vira/vira.hpp1 parent 8b032b4 commit 98bcf85
13 files changed
Lines changed: 511 additions & 322 deletions
File tree
- .github/workflows
- cmake
- fetch
- find
- dependencies/recipe
- source/vira
- tests/packaging
This file was deleted.
0 commit comments