Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
d7dadd68
Unverified
Commit
d7dadd68
authored
Oct 04, 2019
by
Justin Carpentier
Committed by
GitHub
Oct 04, 2019
Browse files
Merge pull request #899 from stack-of-tasks/github-action
Add GitHub action support
parents
411842d0
eb52f192
Changes
1
Show whitespace changes
Inline
Side-by-side
.github/workflows/ccpp.yml
0 → 100644
View file @
d7dadd68
name
:
C/C++ CI of Pinocchio
on
:
[
push
,
pull_request
]
jobs
:
build
:
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
os
:
[
ubuntu-18.04
,
ubuntu-16.04
]
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Register robotpkg
run
:
|
sudo sh -c "echo \"deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg\" >> /etc/apt/sources.list "
sudo apt-key adv --fetch-keys http://robotpkg.openrobots.org/packages/debian/robotpkg.key
-
name
:
Set and install dependencies
run
:
|
sudo rm -rf /usr/local/share/boost/1.69.0
export APT_DEPENDENCIES="doxygen libboost-system-dev libboost-test-dev libboost-filesystem-dev libboost-program-options-dev libeigen3-dev liburdfdom-dev texlive-font-utils"
export APT_DEPENDENCIES=$APT_DEPENDENCIES" libboost-python-dev robotpkg-py27-eigenpy python2.7-dev python-numpy"
export APT_DEPENDENCIES=$APT_DEPENDENCIES" robotpkg-hpp-fcl"
sudo apt-get update -qq
sudo apt-get install -qq curl cppcheck ${APT_DEPENDENCIES}
-
name
:
Run cmake
run
:
|
git submodule update --init
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/openrobots/lib/pkgconfig
export PATH=$PATH:/opt/openrobots/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/openrobots/lib:/usr/local/lib:/usr/lib:/usr/lib/x86_64-linux-gnu
export MAKEFLAGS="-j2"
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_WITH_COLLISION_SUPPORT=ON
make
make build_tests
make test
sudo make install
sudo make uninstall
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment