build #1990
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: build | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '55 0 * * *' | |
jobs: | |
build_and_test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ros_distribution: | |
- humble | |
- iron | |
- rolling | |
include: | |
# Humble Hawksbill (May 2022 - May 2027) | |
- ubuntu_distribution: jammy | |
ros_distribution: humble | |
ros_version: 2 | |
# Iron Irwini (May 2023 - November 2024) | |
- ubuntu_distribution: jammy | |
ros_distribution: iron | |
ros_version: 2 | |
# Rolling Ridley (No End-Of-Life) | |
- ubuntu_distribution: jammy | |
ros_distribution: rolling | |
ros_version: 2 | |
container: | |
image: osrf/ros:${{ matrix.ros_distribution }}-desktop-${{ matrix.ubuntu_distribution }} | |
steps: | |
- name: pwd | |
run: pwd | |
- name: setup ROS environment | |
uses: ros-tooling/[email protected] | |
with: | |
required-ros-distributions: ${{ matrix.ros_distribution }} | |
- name: build | |
uses: ros-tooling/[email protected] | |
with: | |
target-ros2-distro: ${{ matrix.ros_distribution }} | |
# build all packages listed in the meta package | |
package-name: | | |
rmf_traffic | |
vcs-repo-file-url: | | |
https://raw.githubusercontent.com/open-rmf/rmf/main/rmf.repos | |
colcon-defaults: | | |
{ | |
"build": { | |
"mixin": ["coverage-gcc"] | |
} | |
} | |
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | |
- name: Upload failed test results | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: test-results | |
path: ros_ws/build/*/test_results/*/*.catch2.xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
files: ros_ws/lcov/total_coverage.info | |
flags: tests | |
name: lean_and_mean_codecov_bot | |