Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI-scorpio_interfaces

on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_and_test:
name: Build and Test
runs-on: ubuntu-22.04

strategy:
matrix:
ros-distro:
- humble

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to extend this matrix by jazzy? Because in near future we want to migrate our system to ros2 jazzy.


container:
image: ros:${{ matrix.ros-distro }}-ros-base

env:
ROS_DISTRO: ${{ matrix.ros-distro }}
TZ: Europe/Warsaw

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
path: src/scorpio_interfaces

- name: Install dependencies
shell: bash
run: |
apt-get update && apt-get install -y --no-install-recommends \
python3-colcon-common-extensions
rosdep update --rosdistro ${{ matrix.ros-distro }}
rosdep install -i --from-paths src \
--rosdistro ${{ matrix.ros-distro }} \
-y

- name: Build
shell: bash
run: |
. /opt/ros/${{ matrix.ros-distro }}/setup.bash
colcon build \
--packages-select scorpio_interfaces \
--event-handlers console_cohesion+
Loading