From 3d6ce823834f04c59e3bcaa2da8ae9e7fa21d99f Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Wed, 31 May 2023 18:43:00 +0200 Subject: [PATCH] ci/windows: add "if errorlevel 1 exit 1" --- .github/workflows/windows-conda-clang.yml | 5 +++++ .github/workflows/windows-conda-v142.yml | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows-conda-clang.yml b/.github/workflows/windows-conda-clang.yml index 65fd3fa3..8f62d144 100644 --- a/.github/workflows/windows-conda-clang.yml +++ b/.github/workflows/windows-conda-clang.yml @@ -58,17 +58,22 @@ jobs: -DHPP_FCL_HAS_QHULL=ON ^ -DBUILD_PYTHON_INTERFACE=ON ^ .. + if errorlevel 1 exit 1 :: Build and Install cmake --build . --config Release --target install + if errorlevel 1 exit 1 :: 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 hppfcl --boost-python --ignore-invalid signature --no-setup-py --root-module-suffix "" + if errorlevel 1 exit 1 :: Testing ctest --output-on-failure -C Release -V + if errorlevel 1 exit 1 :: Test Python import cd .. python -c "import hppfcl" + if errorlevel 1 exit 1 diff --git a/.github/workflows/windows-conda-v142.yml b/.github/workflows/windows-conda-v142.yml index f69f309f..dabd125b 100644 --- a/.github/workflows/windows-conda-v142.yml +++ b/.github/workflows/windows-conda-v142.yml @@ -57,18 +57,22 @@ jobs: -DHPP_FCL_HAS_QHULL=ON ^ -DBUILD_PYTHON_INTERFACE=ON ^ .. + if errorlevel 1 exit 1 :: Build and Install cmake --build . --config Release --target install - + if errorlevel 1 exit 1 :: 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 hppfcl --boost-python --ignore-invalid signature --no-setup-py --root-module-suffix "" + if errorlevel 1 exit 1 :: Testing ctest --output-on-failure -C Release -V + if errorlevel 1 exit 1 :: Test Python import cd .. python -c "import hppfcl" + if errorlevel 1 exit 1 -- GitLab