File tree Expand file tree Collapse file tree 2 files changed +60
-1
lines changed Expand file tree Collapse file tree 2 files changed +60
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 44
44
<buildtool_depend >catkin</buildtool_depend >
45
45
<build_depend >cmake_modules</build_depend >
46
46
<build_depend >ocs2_core</build_depend >
47
- <build_depend >libglpk-dev </build_depend >
47
+ <build_depend >glpk </build_depend >
48
48
<run_depend >ocs2_core</run_depend >
49
49
<run_depend >libglpk-dev</run_depend > <!-- required for the buildserver to install libglpk-dev -->
50
50
You can’t perform that action at this time.
0 commit comments