diff --git a/.github/workflows/windows-conda-clang.yml b/.github/workflows/windows-conda-clang.yml index 31394a00f014f5c855ae3bfe81d8823928254913..3160b1087b124f3b11cf3128ee48de8a035dd14e 100644 --- a/.github/workflows/windows-conda-clang.yml +++ b/.github/workflows/windows-conda-clang.yml @@ -52,7 +52,7 @@ jobs: -G "Visual Studio 16 2019" -T "ClangCl" -DCMAKE_GENERATOR_PLATFORM=x64 ^ -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^ -DCMAKE_BUILD_TYPE=Release ^ - -DGENERATE_PYTHON_STUBS=ON ^ + -DGENERATE_PYTHON_STUBS=OFF ^ -DPYTHON_SITELIB=%CONDA_PREFIX%\Lib\site-packages ^ -DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^ -DBUILD_PYTHON_INTERFACE=ON ^ @@ -61,6 +61,10 @@ jobs: :: Build and Install cmake --build . --config Release --target install + :: Build stubs + git clone https://github.com/jcarpent/pybind11-stubgen.git + python pybind11_stubgen\__init__.py -o %CONDA_PREFIX%\Lib\site-packages\hppfcl hppfcl --boost-python --ignore-invalid signature --no-setup-py --root-module-suffix "" + :: Testing ctest --output-on-failure -C Release -V diff --git a/.github/workflows/windows-conda-v142.yml b/.github/workflows/windows-conda-v142.yml index 5daee8868fecae2607b66f69b5d0c2dbc4790876..bbf7dd4423c5ca95e463a1747615edb52f29b65a 100644 --- a/.github/workflows/windows-conda-v142.yml +++ b/.github/workflows/windows-conda-v142.yml @@ -51,7 +51,7 @@ jobs: -G "Visual Studio 16 2019" -T "v142" -DCMAKE_GENERATOR_PLATFORM=x64 ^ -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^ -DCMAKE_BUILD_TYPE=Release ^ - -DGENERATE_PYTHON_STUBS=ON ^ + -DGENERATE_PYTHON_STUBS=OFF ^ -DPYTHON_SITELIB=%CONDA_PREFIX%\Lib\site-packages ^ -DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^ -DBUILD_PYTHON_INTERFACE=ON ^ @@ -60,6 +60,11 @@ jobs: :: Build and Install cmake --build . --config Release --target install + + :: Build stubs + git clone https://github.com/jcarpent/pybind11-stubgen.git + python pybind11_stubgen\__init__.py -o %CONDA_PREFIX%\Lib\site-packages\hppfcl hppfcl --boost-python --ignore-invalid signature --no-setup-py --root-module-suffix "" + :: Testing ctest --output-on-failure -C Release -V