From aed3cef77a5dc7e6aa3982c0829c3e6f3b16d910 Mon Sep 17 00:00:00 2001
From: Justin Carpentier <justin.carpentier@inria.fr>
Date: Mon, 6 Sep 2021 21:05:57 +0200
Subject: [PATCH] ci: add stubs generation on Windows

---
 .github/workflows/windows-conda.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/windows-conda.yml b/.github/workflows/windows-conda.yml
index 6b5d6aa1..10a7dd5e 100644
--- a/.github/workflows/windows-conda.yml
+++ b/.github/workflows/windows-conda.yml
@@ -47,6 +47,10 @@ jobs:
         :: Build and Install
         cmake --build . --config Release --target install
 
+        :: Build stubs
+        git clone https://github.com/jcarpent/pybind11-stubgen.git
+        python "%CD%\pybind11-stubgen\pybind11_stubgen\__init__.py" -o %CONDA_PREFIX%\Lib\site-packages\eigenpy eigenpy --boost-python --ignore-invalid signature --no-setup-py --root-module-suffix ""
+
         :: Testing
         ctest --output-on-failure -C Release -V
 
-- 
GitLab