Verified Commit 32014f56 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

ci: enable GENERATE_PYTHON_STUBS=ON

parent 73aefc17
Pipeline #15890 passed with stage
in 94 minutes and 22 seconds
......@@ -4,7 +4,7 @@ on: [push,pull_request]
jobs:
hpp-fcl-conda:
name: hpp-fcl on ${{ matrix.os }} with Conda
name: CI on ${{ matrix.os }} with Conda
runs-on: ${{ matrix.os }}
strategy:
......@@ -14,10 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
run: |
git submodule update --init
with:
submodules: recursive
- uses: conda-incubator/setup-miniconda@v2
with:
......@@ -32,17 +30,17 @@ jobs:
conda activate hpp-fcl
conda install cmake -c main
conda install llvm-openmp -c conda-forge
- name: Build hpp-fcl
shell: bash -l {0}
run: |
conda activate hpp-fcl
echo $CONDA_PREFIX
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3)
cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3) -DGENERATE_PYTHON_STUBS=ON
make -j2
make build_tests
export CTEST_OUTPUT_ON_FAILURE=1
......
......@@ -16,9 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
run: |
git submodule update --init
with:
submodules: recursive
- uses: goanpeca/setup-miniconda@v1
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
......@@ -29,7 +28,7 @@ jobs:
- name: Install cmake and update conda
run: |
conda install cmake -c main
- name: Build FCL
shell: cmd /C CALL {0}
env:
......@@ -42,7 +41,7 @@ jobs:
set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=%
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
:: Create build
mkdir build
pushd build
......@@ -53,11 +52,12 @@ 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 ^
-DPYTHON_SITELIB=%CONDA_PREFIX%\Lib\site-packages ^
-DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^
-DBUILD_PYTHON_INTERFACE=ON ^
..
:: Build and Install
cmake --build . --config Release --target install
......
......@@ -15,9 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
run: |
git submodule update --init
with:
submodules: recursive
- uses: goanpeca/setup-miniconda@v1
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
......@@ -28,7 +27,7 @@ jobs:
- name: Install cmake and update conda
run: |
conda install cmake -c main
- name: Build FCL
shell: cmd /C CALL {0}
env:
......@@ -41,7 +40,7 @@ jobs:
set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=%
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
:: Create build
mkdir build
pushd build
......@@ -52,11 +51,12 @@ 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 ^
-DPYTHON_SITELIB=%CONDA_PREFIX%\Lib\site-packages ^
-DPYTHON_EXECUTABLE=%CONDA_PREFIX%\python.exe ^
-DBUILD_PYTHON_INTERFACE=ON ^
..
:: Build and Install
cmake --build . --config Release --target install
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment