Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/ros-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build and Test OCS2

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

# build both Debug and Release mode
strategy:
fail-fast: false
matrix:
build_type: [ Debug, Release ]

# environment: regular Ubuntu with a vanilla ROS container
runs-on: ubuntu-latest
container:
image: ros:noetic

steps:
- name: Environment Info
run: |
pwd
uname -r
lsb_release -a

- name: System deps
run: |
apt-get update
apt-get install -y git ninja-build liburdfdom-dev liboctomap-dev libassimp-dev

- uses: actions/checkout@v2
with:
path: src/ocs2

- name: Rosdep
run: |
rosdep update
rosdep install --from-paths src --ignore-src -r -y

- name: Checkout dependencies
run: |
git clone --recurse-submodules https://github.com/leggedrobotics/pinocchio.git src/pinocchio
git clone --recurse-submodules https://github.com/leggedrobotics/hpp-fcl.git src/hpp-fcl
git clone https://github.com/ANYbotics/anymal_c_simple_description.git src/anymal-c-simple-description
- name: Build (${{ matrix.build_type }})
shell: bash
run: |
source /opt/ros/noetic/setup.bash
catkin_make_isolated --use-ninja --merge --only-pkg-with-deps ocs2 --cmake-args -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}

- name: Test
shell: bash
run: |
source devel_isolated/setup.bash
catkin_make_isolated --use-ninja --merge --only-pkg-with-deps ocs2 --catkin-make-args run_tests
2 changes: 1 addition & 1 deletion ocs2_frank_wolfe/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<buildtool_depend>catkin</buildtool_depend>
<build_depend>cmake_modules</build_depend>
<build_depend>ocs2_core</build_depend>
<build_depend>libglpk-dev</build_depend>
<build_depend>glpk</build_depend>
<run_depend>ocs2_core</run_depend>
<run_depend>libglpk-dev</run_depend> <!-- required for the buildserver to install libglpk-dev -->

Expand Down