-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from mascheiber/feat/github_build_action
[Enhancement]: add GitHub actions for build testing
- Loading branch information
Showing
1 changed file
with
86 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# 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" |