Skip to content
Snippets Groups Projects
Verified Commit 57c01ec6 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

ci: fix windows

parent 0a639a3d
No related branches found
No related tags found
No related merge requests found
Pipeline #20613 passed with warnings
...@@ -30,9 +30,11 @@ jobs: ...@@ -30,9 +30,11 @@ jobs:
set BOOST_ROOT_1_69_0= set BOOST_ROOT_1_69_0=
set BOOST_ROOT_1_72_0= set BOOST_ROOT_1_72_0=
set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=% set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=%
if errorlevel 1 exit 1
:: start building :: start building
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
if errorlevel 1 exit 1
mkdir build mkdir build
pushd build pushd build
cmake ^ cmake ^
...@@ -43,17 +45,22 @@ jobs: ...@@ -43,17 +45,22 @@ jobs:
-DPYTHON_SITELIB=%CONDA_PREFIX%\Lib\site-packages ^ -DPYTHON_SITELIB=%CONDA_PREFIX%\Lib\site-packages ^
-DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^ -DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^
.. ..
if errorlevel 1 exit 1
:: Build and Install :: Build and Install
cmake --build . --config Release --target install cmake --build . --config Release --target install
if errorlevel 1 exit 1
:: Build stubs :: Build stubs
git clone https://github.com/jcarpent/pybind11-stubgen.git 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 "" 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 ""
if errorlevel 1 exit 1
:: Testing :: Testing
ctest --output-on-failure -C Release -V ctest --output-on-failure -C Release -V
if errorlevel 1 exit 1
:: Test Python import :: Test Python import
cd .. cd ..
python -c "import eigenpy" python -c "import eigenpy"
if errorlevel 1 exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment