[Fix] Allow ROS namespace #3
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
# Copyright (C) 2024 Martin Scheiber and Christian Brommer, | |
# Control of Networked Systems, University of Klagenfurt, Austria. | |
# | |
# All rights reserved. | |
# | |
# This software is licensed under the terms of the BSD-2-Clause-License with | |
# no commercial use allowed, the full terms of which are made available | |
# in the LICENSE file. No license in patents is granted. | |
# | |
# You can contact the author at <[email protected]> and | |
# <[email protected]>. | |
name: Build ROS | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
paths: | |
- '.github/workflows/build-ros1.yml' | |
- 'include/**' | |
- 'msg/**' | |
- 'src/**' | |
pull_request: | |
branches: | |
- main | |
- develop | |
paths: | |
- '.github/workflows/build-ros1.yml' | |
- 'include/**' | |
- 'msg/**' | |
- 'src/**' | |
jobs: | |
build: | |
name: Build ROS | |
runs-on: ubuntu-latest | |
container: ros:${{ matrix.ros_version }}-ros-core | |
strategy: | |
fail-fast: false | |
matrix: | |
ros_version: | |
- noetic | |
steps: | |
- name: Get System Dependencies (Git/Build Tools/ROS Dependencies) | |
run: > | |
apt update && apt install --no-install-recommends -y | |
software-properties-common | |
&& add-apt-repository -y ppa:git-core/ppa | |
&& apt update | |
&& apt install --no-install-recommends -y | |
build-essential | |
git | |
python3-catkin-tools | |
python3-rosdep | |
ros-${{ matrix.ros_version }}-mavros-msgs | |
ros-${{ matrix.ros_version }}-tf | |
ros-${{ matrix.ros_version }}-tf2-eigen | |
ros-${{ matrix.ros_version }}-tf2-ros | |
- name: Create Catkin Workspace | |
run: mkdir -p ${{github.workspace}}/autonomy_test_cws/src | |
- name: Download Autonomy Engine into Workspace | |
uses: actions/checkout@v4 | |
with: | |
path: ${{github.workspace}}/autonomy_test_cws/src/autonomy_engine | |
- name: Download Mission Sequencer into Workspace | |
uses: actions/checkout@v4 | |
with: | |
repository: aau-cns/mission_sequencer | |
ref: main | |
path: ${{github.workspace}}/autonomy_test_cws/src/mission_sequencer | |
- name: Download ROS Watchdog into Workspace | |
uses: actions/checkout@v4 | |
with: | |
repository: aau-cns/ros_watchdog | |
ref: main | |
path: ${{github.workspace}}/autonomy_test_cws/src/ros_watchdog | |
- name: Build Autonomy | |
working-directory: ${{github.workspace}}/autonomy_test_cws/ | |
run: /bin/bash -c "ls src; source /opt/ros/${{ matrix.ros_version }}/setup.bash; catkin build autonomy_engine" |