Enable manaul trigger of ROS 2 CI, add Iron, deprecate Foxy #176
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
name: ROS2 CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- 'ros2/*' | |
- 'ros2' | |
jobs: | |
test_environment: | |
runs-on: [ubuntu-latest] | |
strategy: | |
fail-fast: false | |
matrix: | |
ros_distribution: | |
- humble | |
- iron | |
- rolling | |
include: | |
# Humble Hawksbill (May 2022 - 2027 | |
- docker_image: rostooling/setup-ros-docker:ubuntu-jammy-ros-humble-ros-base-latest | |
ros_distribution: humble | |
ros_version: 2 | |
# Iron Irwini (May 2023 - Nov 2024) | |
- docker_image: rostooling/setup-ros-docker:ubuntu-jammy-ros-iron-ros-base-latest | |
ros_distribution: iron | |
ros_version: 2 | |
# Rolling Ridley (June 2020 - Present) | |
- docker_image: rostooling/setup-ros-docker:ubuntu-jammy-ros-rolling-ros-base-latest | |
ros_distribution: rolling | |
ros_version: 2 | |
container: | |
image: ${{ matrix.docker_image }} | |
steps: | |
- name: setup directories | |
run: mkdir -p ros_ws/src | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
path: ros_ws/src | |
- name: build and test | |
id: build_and_test_step | |
uses: ros-tooling/action-ros-ci@master | |
with: | |
package-name: usb_cam | |
target-ros2-distro: ${{ matrix.ros_distribution }} | |
vcs-repo-file-url: "" | |
colcon-defaults: | | |
{ | |
"build": { | |
"mixin": ["coverage-gcc"] | |
} | |
} | |
# If possible, pin the repository in the workflow to a specific commit to avoid | |
# changes in colcon-mixin-repository from breaking your tests. | |
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/1ddb69bedfd1f04c2f000e95452f7c24a4d6176b/index.yaml | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: colcon-logs-${{ matrix.ros_distribution }} | |
path: ${{ steps.build_and_test_step.outputs.ros-workspace-directory-name }}/log | |
if: always() | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: lcov-logs-${{ matrix.ros_distribution }} | |
path: ${{ steps.build_and_test_step.outputs.ros-workspace-directory-name }}/lcov | |
if: always() |