From 62a61453dcc9f1741ea65eb45fe7b68488da8584 Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Wed, 27 Jul 2022 13:35:29 +0200
Subject: [PATCH] ci: test packaging

---
 .github/workflows/macos-linux-conda.yml | 7 +++++++
 .github/workflows/windows-conda.yml     | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/.github/workflows/macos-linux-conda.yml b/.github/workflows/macos-linux-conda.yml
index 8a1d3763..b509d8de 100644
--- a/.github/workflows/macos-linux-conda.yml
+++ b/.github/workflows/macos-linux-conda.yml
@@ -53,6 +53,13 @@ jobs:
         make test
         make install
 
+    - name: Test packaging
+      shell: bash -l {0}
+      run: |
+        conda activate eigenpy
+
+        cmake -B test-packaging -S unittest/packaging/cmake -DPYTHON_EXECUTABLE=$(which python3)
+
     - name: Configure hpp-fcl
       shell: bash -l {0}
       run: |
diff --git a/.github/workflows/windows-conda.yml b/.github/workflows/windows-conda.yml
index b12713af..b25a078e 100644
--- a/.github/workflows/windows-conda.yml
+++ b/.github/workflows/windows-conda.yml
@@ -66,6 +66,13 @@ jobs:
         if errorlevel 1 exit 1
 
         :: Test packaging
+
+        cmake -B test-packaging -S unittest/packaging/cmake ^
+          -G "NMake Makefiles" ^
+          -DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe
+        if errorlevel 1 exit 1
+
+        :: Configure hpp-fcl
         conda install -c conda-forge octomap assimp qhull
         git clone --recursive https://github.com/humanoid-path-planner/hpp-fcl.git
         pushd hpp-fcl
-- 
GitLab