Merge branch 'master' into fixUbuntu

fixes-turtlebasket
Mattia Montanari 2022-07-09 23:56:08 +02:00
commit a6facc11c2
2 changed files with 4 additions and 25 deletions

View File

@ -1,23 +0,0 @@
name: C/C++ CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install python moduels
run: sudo apt update && sudo apt install -y libeigen3-dev python3-setuptools && pip3 install pybind11 pytest numpy scipy cython
- name: Compile Bybind
run: export CPATH=/usr/include/eigen3 && cd examples/python && source build.sh
- name: Test Bybind
run: |
cd examples/python
python3 -m pytest -s -v test.py
- name: Run cython
run: |
cd examples/cython
python3 setup.py build_ext --inplace && python3 -m pytest -s -v test.py

View File

@ -26,7 +26,7 @@
If you have some basic tools installed (git, compiler and cmake) clone this repo: If you have some basic tools installed (git, compiler and cmake) clone this repo:
``` ```
git clone git clone https://github.com/MattiaMontanari/openGJK.git
``` ```
followed by these commands: followed by these commands:
@ -35,12 +35,14 @@ followed by these commands:
cmake -E make_directory build cmake -E make_directory build
cmake -E chdir build cmake -DRUN_UNITESTS=ON -DCMAKE_BUILD_TYPE=Release .. cmake -E chdir build cmake -DRUN_UNITESTS=ON -DCMAKE_BUILD_TYPE=Release ..
cmake --build build cmake --build build
cmake -E chdir build/src/examples/c ./example_lib_opengjk_ce cmake -E chdir build/examples/c ./example_lib_opengjk_ce
cmake -E chdir "build/test" ctest --build-config Release cmake -E chdir "build/test" ctest --build-config Release
``` ```
If you get no errors, the successfull output is: If you get no errors, the successfull output is:
> `Distance between bodies 3.653650`. > `Distance between bodies 3.653650`.
However, if you do get an error - any error - please file a bug! Support requests are welcome too. However, if you do get an error - any error - please file a bug! Support requests are welcome too.
# Beyond getting started # Beyond getting started