Skip to content

Commit 210b0d0

Browse files
committed
GitHub Action to build and test ocs2
Build type: Debug, Release
1 parent b037d81 commit 210b0d0

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

.github/workflows/ros-build-test.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build and Test OCS2
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
# build both Debug and Release mode
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
build_type: [ Debug, Release ]
17+
18+
# environment: regular Ubuntu with a vanilla ROS container
19+
runs-on: ubuntu-latest
20+
container:
21+
image: ros:noetic
22+
23+
steps:
24+
- name: Environment Info
25+
run: |
26+
pwd
27+
uname -r
28+
lsb_release -a
29+
30+
- name: System deps
31+
run: |
32+
apt-get update
33+
apt-get install -y git ninja-build liburdfdom-dev liboctomap-dev libassimp-dev
34+
35+
- uses: actions/checkout@v2
36+
with:
37+
path: src/ocs2
38+
39+
- name: Rosdep
40+
run: |
41+
rosdep update
42+
rosdep install --from-paths src --ignore-src -r -y
43+
44+
- name: Checkout dependencies
45+
run: |
46+
git clone --recurse-submodules https://github.com/leggedrobotics/pinocchio.git src/pinocchio
47+
git clone --recurse-submodules https://github.com/leggedrobotics/hpp-fcl.git src/hpp-fcl
48+
git clone https://github.com/ANYbotics/anymal_c_simple_description.git src/anymal-c-simple-description
49+
- name: Build (${{ matrix.build_type }})
50+
shell: bash
51+
run: |
52+
source /opt/ros/noetic/setup.bash
53+
catkin_make_isolated --use-ninja --merge --only-pkg-with-deps ocs2 --cmake-args -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
54+
55+
- name: Test
56+
shell: bash
57+
run: |
58+
source devel_isolated/setup.bash
59+
catkin_make_isolated --use-ninja --merge --only-pkg-with-deps ocs2 --catkin-make-args run_tests

ocs2_frank_wolfe/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<buildtool_depend>catkin</buildtool_depend>
4545
<build_depend>cmake_modules</build_depend>
4646
<build_depend>ocs2_core</build_depend>
47-
<build_depend>libglpk-dev</build_depend>
47+
<build_depend>glpk</build_depend>
4848
<run_depend>ocs2_core</run_depend>
4949
<run_depend>libglpk-dev</run_depend> <!-- required for the buildserver to install libglpk-dev -->
5050

0 commit comments

Comments
 (0)