Skip to content

Commit

Permalink
add source build of idynTree
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaostuni committed Jan 26, 2024
1 parent 39bbed4 commit 60b405b
Showing 2 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Default owners
* @diegoferigo
* @andreaostuni
24 changes: 23 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -49,6 +49,13 @@ jobs:
ninja-build \
build-essential \
software-properties-common
libeigen3-dev \
libxml2-dev \
coinor-libipopt-dev \
libassimp-dev \
libirrlicht-dev \
libglfw3-dev \
swig
- name: '🐍 Initialize Python'
uses: actions/setup-python@v5
@@ -95,6 +102,20 @@ jobs:
env:
TAGS_YAML: https://raw.githubusercontent.com/gazebo-tooling/gazebodistro/master/collection-${{ matrix.gazebo }}.yaml

- name: '🏗️ Build idyntree'
run: |
cd /workspace/src
git clone https://github.com/robotology/idyntree.git
cd ..
colcon build \
--packages-select idyntree \
--cmake-args \
-GNinja \
-DIDYNTREE_USES_PYTHON:BOOL=ON \
-DIDYNTREE_USES_IPOPT:BOOL=ON
-DCMAKE_BUILD_TYPE=Debug \
--merge-install
- name: '🏗️ Build colcon workspace'
run: |
cd /workspace
@@ -227,7 +248,8 @@ jobs:
libxml2-dev coinor-libipopt-dev libeigen3-dev libassimp-dev swig
- name: '🤖 Install iDynTree'
run: |
pip install idyntree
PYTHONPATH=/workspace/install/iDynTree/lib/python3/dist-packages:$PYTHONPATH
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
IDYNTREE_PYTHON_PKG=$(python3 -c 'import idyntree, pathlib; print(pathlib.Path(idyntree.__file__).parent)')
echo "CMAKE_PREFIX_PATH=$IDYNTREE_PYTHON_PKG" >> $GITHUB_ENV

0 comments on commit 60b405b

Please sign in to comment.