Skip to content

Commit

Permalink
Initial ros2 pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanFabian committed Aug 9, 2024
1 parent 56c6f3d commit a1d038d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml → .github/workflows/ci-ros1.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build & Test
on:
push:
branches: [ master ]
branches: [ noetic, jazzy ]
pull_request:
branches: [ master ]
branches: [ noetic, jazzy ]

jobs:
Linting:
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y python3-catkin-tools python3-empy
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: hector/src
- name: rosdep
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/ci-ros2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build & Test
on:
push:
branches: [ jazzy ]
pull_request:
branches: [ jazzy ]

jobs:
Linting:
name: Lint Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
run: |
sudo apt-get update && sudo apt-get install -y clang-format cppcheck libxml2-utils
- name: Lint C++
run: |
clang-format -Werror -n -style=file $(find . -name '*.cpp' -o -name '*.hpp' -o -name '*.h' -o -name '*.c' -o -name '*.cc')
- name: Check C++
run: |
cppcheck --force --quiet --error-exitcode=1 .
- name: Lint package.xml
run: |
xmllint --noout --schema http://download.ros.org/schema/package_format3.xsd $(find . -name 'package.xml')
build-and-test:
needs: Linting
runs-on: ubuntu-latest
strategy:
matrix:
ros_distro: [humble, jazzy]
container:
image: ros:${{matrix.ros_distro}}-ros-base
steps:
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ matrix.ros_distro }}
- uses: ros-tooling/[email protected]
with:
target-ros2-distro: ${{ matrix.ros_distro }}
7 changes: 3 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Documentation Build
on:
push:
branches: [ master ]
branches: [ noetic, jazzy ]

jobs:
documentation:
runs-on: ubuntu-latest
runs-on: debian-latest
container: debian:buster-slim
steps:
- name: Prerequisites
Expand All @@ -15,10 +15,9 @@ jobs:
shell: bash

- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
# ref: master # make sure to use documentation script from master branch

- name: Execute script to build our documentation and update pages
env:
Expand Down

0 comments on commit a1d038d

Please sign in to comment.