use external autopilot-tools python package for autopilot configuration #212
Workflow file for this run
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
name: catkin_build | |
on: [push] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
catkin_build: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 8 | |
container: | |
image: ros:melodic | |
steps: | |
# 1. Install basic requirements | |
- name: Force Install GIT latest since actions/checkout@v2 has some problems on ubuntu-18.04 | |
run: | | |
apt-get update && \ | |
apt-get upgrade -y && \ | |
apt-get install -y software-properties-common && \ | |
add-apt-repository -y ppa:git-core/ppa && \ | |
apt-get update && \ | |
apt-get install -y git | |
- run: apt-get install -y python-catkin-tools python-pip python3-pip | |
- run: apt-get install -y python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential python-catkin-tools | |
# 2. Checkout repo with submodules | |
- uses: actions/checkout@v2 | |
with: | |
path: catkin_ws/src/innopolis_vtol_dynamics | |
submodules: recursive | |
# 3. Install requirements | |
- name: Install innopolis_vtol_dynamics requirements | |
run: ./catkin_ws/src/innopolis_vtol_dynamics/uav_dynamics/inno_vtol_dynamics/install_requirements.sh | |
- name: Install geographiclib_conversions requirements | |
run: ./catkin_ws/src/innopolis_vtol_dynamics/uav_dynamics/geographiclib_conversions/scripts/install.sh | |
- name: Install uavcan_communicator requirements | |
run: | | |
cd catkin_ws/src/innopolis_vtol_dynamics/communicators/uavcan_communicator && \ | |
./scripts/install_requirements.sh && \ | |
./scripts/install_libuavcan.sh | |
- name: Install inno-sim-interface requirements | |
run: | | |
sudo apt-get install -y ros-melodic-rosauth && \ | |
sudo apt-get install -y python-protobuf && \ | |
pip install bson pymongo Pillow twisted | |
# 4. Build | |
- name: catkin build | |
run: | | |
source /opt/ros/melodic/setup.bash && \ | |
cd catkin_ws && \ | |
catkin build |