Skip to content

Updated with working Docker containers and CLI application #19

Updated with working Docker containers and CLI application

Updated with working Docker containers and CLI application #19

Workflow file for this run

name: Setup and build packages
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
USER: github.actor
jobs:
build:
runs-on: ubuntu-latest
container:
image: px4io/px4-dev-ros-noetic:latest
options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
steps:
- name: Check environment
run: |
export
ulimit -a
- name: Create dependency workspace
run: |
mkdir -p ~/dependencies
cd ~/dependencies
- name: Install PX4 Dependencies
run: |
mkdir -p ~/dependencies
cd ~/dependencies
wget https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/Tools/setup/ubuntu.sh
wget https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/Tools/setup/requirements.txt
chmod +x ~/dependencies/ubuntu.sh && . ~/dependencies/ubuntu.sh
- name: Install MAVROS using binaries
run: |
mkdir -p ~/dependencies
cd ~/dependencies
sudo apt-get install ros-$ROS_DISTRO-mavros ros-$ROS_DISTRO-mavros-extras
- name: Install ROS building dependencies
run: |
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential -y
sudo apt install python3-catkin-tools python3-rosinstall-generator python3-osrf-pycommon -y
sudo apt-get install ros-$ROS_DISTRO-rqt ros-$ROS_DISTRO-rqt-common-plugins -y
pip install scipy
- name: Create new workspace
run: |
cd ~
mkdir -p sarax_ws/src
- name: Initialise catkin workspace
run: |
cd ~/sarax_ws/
. /opt/ros/$ROS_DISTRO/setup.sh
catkin init
wstool init src
- name: Clone Sarax project
run: |
cd ~/sarax_ws/src
git clone ${{ github.server_url }}/${{ github.repository }}.git
ls -l
- name: Get dependencies using rosdep
run: |
cd ~/sarax_ws/
. /opt/ros/$ROS_DISTRO/setup.sh
rosdep install --from-paths src --ignore-src -r -y --skip-keys="python-scipy"
- name: Build workspace
if: always()
run: |
cd ~/sarax_ws/
. /opt/ros/$ROS_DISTRO/setup.sh
catkin build