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] ...@@ -4,7 +4,7 @@ on: [push,pull_request]
jobs: jobs:
hpp-fcl-conda: hpp-fcl-conda:
name: hpp-fcl on ${{ matrix.os }} with Conda name: CI on ${{ matrix.os }} with Conda
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
...@@ -14,10 +14,8 @@ jobs: ...@@ -14,10 +14,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
- name: Checkout submodules submodules: recursive
run: |
git submodule update --init
- uses: conda-incubator/setup-miniconda@v2 - uses: conda-incubator/setup-miniconda@v2
with: with:
...@@ -32,17 +30,17 @@ jobs: ...@@ -32,17 +30,17 @@ jobs:
conda activate hpp-fcl conda activate hpp-fcl
conda install cmake -c main conda install cmake -c main
conda install llvm-openmp -c conda-forge conda install llvm-openmp -c conda-forge
- name: Build hpp-fcl - name: Build hpp-fcl
shell: bash -l {0} shell: bash -l {0}
run: | run: |
conda activate hpp-fcl conda activate hpp-fcl
echo $CONDA_PREFIX echo $CONDA_PREFIX
mkdir build mkdir build
cd 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 -j2
make build_tests make build_tests
export CTEST_OUTPUT_ON_FAILURE=1 export CTEST_OUTPUT_ON_FAILURE=1
......
...@@ -16,9 +16,8 @@ jobs: ...@@ -16,9 +16,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Checkout submodules with:
run: | submodules: recursive
git submodule update --init
- uses: goanpeca/setup-miniconda@v1 - uses: goanpeca/setup-miniconda@v1
env: env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
...@@ -29,7 +28,7 @@ jobs: ...@@ -29,7 +28,7 @@ jobs:
- name: Install cmake and update conda - name: Install cmake and update conda
run: | run: |
conda install cmake -c main conda install cmake -c main
- name: Build FCL - name: Build FCL
shell: cmd /C CALL {0} shell: cmd /C CALL {0}
env: env:
...@@ -42,7 +41,7 @@ jobs: ...@@ -42,7 +41,7 @@ jobs:
set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=% set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=%
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
:: Create build :: Create build
mkdir build mkdir build
pushd build pushd build
...@@ -53,11 +52,12 @@ jobs: ...@@ -53,11 +52,12 @@ jobs:
-G "Visual Studio 16 2019" -T "ClangCl" -DCMAKE_GENERATOR_PLATFORM=x64 ^ -G "Visual Studio 16 2019" -T "ClangCl" -DCMAKE_GENERATOR_PLATFORM=x64 ^
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^ -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
-DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_BUILD_TYPE=Release ^
-DGENERATE_PYTHON_STUBS=ON ^
-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 ^
-DBUILD_PYTHON_INTERFACE=ON ^ -DBUILD_PYTHON_INTERFACE=ON ^
.. ..
:: Build and Install :: Build and Install
cmake --build . --config Release --target install cmake --build . --config Release --target install
......
...@@ -15,9 +15,8 @@ jobs: ...@@ -15,9 +15,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Checkout submodules with:
run: | submodules: recursive
git submodule update --init
- uses: goanpeca/setup-miniconda@v1 - uses: goanpeca/setup-miniconda@v1
env: env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
...@@ -28,7 +27,7 @@ jobs: ...@@ -28,7 +27,7 @@ jobs:
- name: Install cmake and update conda - name: Install cmake and update conda
run: | run: |
conda install cmake -c main conda install cmake -c main
- name: Build FCL - name: Build FCL
shell: cmd /C CALL {0} shell: cmd /C CALL {0}
env: env:
...@@ -41,7 +40,7 @@ jobs: ...@@ -41,7 +40,7 @@ jobs:
set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=% set PATH=%PATH:C:\hostedtoolcache\windows\Boost\1.72.0;=%
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
:: Create build :: Create build
mkdir build mkdir build
pushd build pushd build
...@@ -52,11 +51,12 @@ jobs: ...@@ -52,11 +51,12 @@ jobs:
-G "Visual Studio 16 2019" -T "v142" -DCMAKE_GENERATOR_PLATFORM=x64 ^ -G "Visual Studio 16 2019" -T "v142" -DCMAKE_GENERATOR_PLATFORM=x64 ^
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^ -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
-DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_BUILD_TYPE=Release ^
-DGENERATE_PYTHON_STUBS=ON ^
-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 ^
-DBUILD_PYTHON_INTERFACE=ON ^ -DBUILD_PYTHON_INTERFACE=ON ^
.. ..
:: Build and Install :: Build and Install
cmake --build . --config Release --target 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