Update instructions for Gazebo 11 and ROS Noetic #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: 'BebopS Build Automation Script' | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'dev/bebopInterface' | |
- 'dev/gazebo9' | |
- 'dev/mitProject2019' | |
- 'sphinx' | |
- 'dev/ros-melodic' | |
- 'feature/ros-kinetic-gazebo9-pkgs' | |
- 'feature/spline' | |
pull_request: | |
branches: | |
- 'master' | |
- 'dev/bebopInterface' | |
- 'dev/gazebo9' | |
- 'dev/mitProject2019' | |
- 'sphinx' | |
- 'dev/ros-melodic' | |
- 'feature/ros-kinetic-gazebo9-pkgs' | |
- 'feature/spline' | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
########################################################################################### | |
## FIRST JOB - GITHUB ACTIONS - UBUNTU 16.04 ROS KINETIC WITH GAZEBO 7 | |
########################################################################################### | |
job1: | |
name: Build on Ubuntu 16.04 with ROS Kinetic and Gazebo 7 | |
runs-on: ubuntu-16.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install ROS | |
env: | |
ROS_CI_DESKTOP: "`lsb_release -cs`" # e.g. [trusty|xenial|...] | |
CI_SOURCE_PATH: $(pwd) | |
ROSINSTALL_FILE: $CI_SOURCE_PATH/dependencies.rosinstall | |
CATKIN_OPTIONS: $CI_SOURCE_PATH/catkin.options | |
ROS_PARALLEL_JOBS: '-j8 -l6' | |
# Set the python path manually to include /usr/-/python2.7/dist-packages | |
# as this is where apt-get installs python packages. | |
PYTHONPATH: $PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages | |
ROS_DISTRO: kinetic | |
run: | | |
sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" > /etc/apt/sources.list.d/ros-latest.list" | |
wget http://packages.ros.org/ros.key -O - | sudo apt-key add - | |
sudo apt-get update -qq | |
sudo apt-get install dpkg | |
sudo rm /var/lib/dpkg/lock | |
sudo dpkg --configure -a | |
sudo apt-get install -y python-catkin-tools python-catkin-pkg python-rosdep python-wstool protobuf-compiler | |
sudo apt-get install -y ros-$ROS_DISTRO-desktop-full ros-$ROS_DISTRO-joy ros-$ROS_DISTRO-octomap-ros | |
sudo apt-get install -y ros-$ROS_DISTRO-mavlink python-wstool python-rosinstall build-essential | |
sudo apt-get install -y protobuf-compiler libgoogle-glog-dev python-rosinstall python-rosinstall-generator | |
sudo apt-get install -y ros-$ROS_DISTRO-octomap ros-$ROS_DISTRO-octomap-mapping | |
sudo apt-get install -y ros-$ROS_DISTRO-pointcloud-to-laserscan ros-$ROS_DISTRO-octovis | |
sudo apt-get install -y ros-$ROS_DISTRO-joy ros-$ROS_DISTRO-control-toolbox | |
sudo apt-get install -y libeigen3-dev ros-$ROS_DISTRO-image-view ros-$ROS_DISTRO-parrot-arsdk libprotobuf-dev | |
sudo apt-get install -y libprotoc-dev ros-$ROS_DISTRO-joy-teleop ros-$ROS_DISTRO-nav-msgs ros-$ROS_DISTRO-mav-msgs | |
sudo apt-get install -y libyaml-cpp-dev ros-$ROS_DISTRO-nodelet ros-$ROS_DISTRO-mav-planning-msgs ros-$ROS_DISTRO-urdf | |
sudo apt-get install -y ros-$ROS_DISTRO-image-transport ros-$ROS_DISTRO-roslint ros-$ROS_DISTRO-angles ros-$ROS_DISTRO-cv-bridge | |
sudo apt-get install -y ros-$ROS_DISTRO-tf2-geometry-msgs ros-$ROS_DISTRO-xacro ffmpeg libavcodec-dev libavformat-dev | |
sudo apt-get install -y libavutil-dev libswscale-dev ros-$ROS_DISTRO-camera-info-manager ros-$ROS_DISTRO-cmake-modules | |
sudo apt-get install -y ros-$ROS_DISTRO-gazebo-msgs ros-$ROS_DISTRO-mavros-msgs ros-$ROS_DISTRO-control-toolbox | |
sudo apt-get install -y ros-$ROS_DISTRO-mav-msgs ros-$ROS_DISTRO-libmavconn ros-$ROS_DISTRO-mavros ros-$ROS_DISTRO-octomap-msgs | |
sudo apt-get install -y ros-$ROS_DISTRO-geographic-msgs ros-$ROS_DISTRO-mavlink ros-$ROS_DISTRO-mavros-extras | |
sudo apt-get install -y ros-$ROS_DISTRO-mav-planning-msgs ros-$ROS_DISTRO-joy | |
source /opt/ros/$ROS_DISTRO/setup.bash | |
sudo rosdep init | |
rosdep update --include-eol-distros | |
rosdep install octomap_mapping | |
rosmake octomap_mapping | |
############################################################################ | |
- name: Installation completed! Started the building process.. | |
run: | | |
source /opt/ros/kinetic/setup.bash | |
mkdir -p ~/catkin_ws/src | |
catkin_init_workspace | |
catkin init | |
cd ~/catkin_ws/src | |
git clone -b med18 https://github.com/gsilano/rotors_simulator.git | |
git clone -b med18 https://github.com/gsilano/mav_comm.git | |
git clone https://github.com/gsilano/bebop_autonomy.git | |
git clone https://github.com/gsilano/BebopS.git | |
cd ~/catkin_ws | |
catkin build | |
########################################################################################## | |
## SECOND JOB - GITHUB ACTIONS - ROS MELODIC WITH GAZEBO 9 | |
########################################################################################### | |
job2: | |
name: Build on Ubuntu 18.04 with ROS Melodic | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install ROS | |
env: | |
ROS_CI_DESKTOP: "`lsb_release -cs`" # e.g. [trusty|xenial|...] | |
CI_SOURCE_PATH: $(pwd) | |
ROSINSTALL_FILE: $CI_SOURCE_PATH/dependencies.rosinstall | |
CATKIN_OPTIONS: $CI_SOURCE_PATH/catkin.options | |
ROS_PARALLEL_JOBS: '-j8 -l6' | |
# Set the python path manually to include /usr/-/python2.7/dist-packages | |
# as this is where apt-get installs python packages. | |
PYTHONPATH: $PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages | |
ROS_DISTRO: melodic | |
run: | | |
sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" > /etc/apt/sources.list.d/ros-latest.list" | |
wget http://packages.ros.org/ros.key -O - | sudo apt-key add - | |
sudo apt-get update -qq | |
sudo apt-get install dpkg | |
sudo rm /var/lib/dpkg/lock | |
sudo dpkg --configure -a | |
sudo apt install -y python-catkin-tools python-catkin-pkg python-rosdep python-wstool ros-$ROS_DISTRO-desktop-full | |
sudo apt-get install -y ros-$ROS_DISTRO-joy python-rosinstall python-rosinstall-generator python-wstool build-essential | |
sudo apt install -y ros-$ROS_DISTRO-octomap-ros ros-$ROS_DISTRO-mavlink python-rosinstall build-essential protobuf-compiler | |
sudo apt install -y libgoogle-glog-dev python-rosinstall-generator ros-$ROS_DISTRO-pointcloud-to-laserscan | |
sudo apt install -y python-rosdep ros-$ROS_DISTRO-octomap ros-$ROS_DISTRO-octomap-mapping | |
sudo apt-get install -y ros-$ROS_DISTRO-joy ros-$ROS_DISTRO-control-toolbox | |
source /opt/ros/$ROS_DISTRO/setup.bash | |
sudo rosdep init | |
rosdep update --include-eol-distros | |
rosdep install octomap_mapping | |
rosmake octomap_mapping | |
##################################################################################### | |
- name: Installation completed! Started the building process.. | |
run: | | |
source /opt/ros/melodic/setup.bash | |
mkdir -p ~/catkin_ws/src | |
catkin_init_workspace | |
catkin init | |
cd ~/catkin_ws/src | |
git clone -b med18_gazebo9 https://github.com/gsilano/rotors_simulator.git | |
git clone -b med18_gazebo9 https://github.com/gsilano/mav_comm.git | |
git clone https://github.com/gsilano/bebop_autonomy.git | |
git clone -b dev/gazebo9 https://github.com/gsilano/BebopS.git | |
cd ~/catkin_ws | |
catkin build |