From de93a09ab80bb9c192334a6488b361f6e8c723da Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 29 Mar 2024 12:09:31 +0100 Subject: [PATCH] Add test for installed CMake package in conda-forge-ci --- .github/workflows/conda-forge-ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/conda-forge-ci.yml b/.github/workflows/conda-forge-ci.yml index 0df0f1bf98..555263e0cc 100644 --- a/.github/workflows/conda-forge-ci.yml +++ b/.github/workflows/conda-forge-ci.yml @@ -41,7 +41,7 @@ jobs: liblie-group-controllers eigen qhull "casadi>=3.5.5" cppad spdlog \ nlohmann_json manif manifpy pybind11 numpy pytest scipy opencv pcl \ tomlplusplus libunicycle-footstep-planner "icub-models>=1.23.4" \ - ros-humble-rclcpp onnxruntime-cpp libbayes-filters-lib + ros-humble-rclcpp onnxruntime-cpp libbayes-filters-lib cmake-package-check - name: Linux-only Dependencies [Linux] if: contains(matrix.os, 'ubuntu') @@ -81,7 +81,7 @@ jobs: run: | mkdir -p build cd build - cmake -GNinja -DBUILD_TESTING:BOOL=ON -DFRAMEWORK_COMPILE_IK:BOOL=OFF \ + cmake -GNinja -DBUILD_TESTING:BOOL=ON -DFRAMEWORK_COMPILE_IK:BOOL=OFF -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \ -DFRAMEWORK_COMPILE_PYTHON_BINDINGS:BOOL=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} .. - name: Build [Linux&macOS] @@ -104,7 +104,7 @@ jobs: run: | mkdir -p build cd build - cmake -GNinja -DBUILD_TESTING:BOOL=ON -DFRAMEWORK_COMPILE_PYTHON_BINDINGS:BOOL=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} .. + cmake -GNinja -DBUILD_TESTING:BOOL=ON -DFRAMEWORK_COMPILE_PYTHON_BINDINGS:BOOL=ON -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} .. - name: Build [Windows] if: contains(matrix.os, 'windows') @@ -119,3 +119,10 @@ jobs: run: | cd build ctest --output-on-failure -C ${{ matrix.build_type }} + + - name: Install and test installed package + shell: bash -l {0} + run: | + cd build + cmake --install . --config ${{ matrix.build_type }} + cmake-package-check BipedalLocomotionFramework