Skip to content

Commit

Permalink
[CI] Reusable CI
Browse files Browse the repository at this point in the history
Signed-off-by: Esteban Martinena <[email protected]>
  • Loading branch information
orensbruli committed Dec 12, 2022
1 parent f376706 commit 7d5e13a
Showing 1 changed file with 9 additions and 55 deletions.
64 changes: 9 additions & 55 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,63 +1,17 @@
name: build
on:
push:
pull_request:
push:
branches: [ main ]
schedule:
- cron: '55 0 * * *'
workflow_dispatch:

jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
ros_distribution:
- galactic
- rolling
include:
# Galactic Geochelone (May 2021 - November 2022)
- docker_image: ubuntu:focal
ros_distribution: galactic
ros_version: 2
# Rolling Ridley (No End-Of-Life)
- docker_image: ubuntu:jammy
ros_distribution: rolling
ros_version: 2
container:
image: ${{ matrix.docker_image }}
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

name: rmf_simulation
uses: open-rmf/rmf_ci_templates/.github/workflows/reusable_build.yaml@main
with:
# NOTE: Avoid adding comments in the packages lines, this can break some of the called scripts in github actions
packages: |
rmf_traffic

0 comments on commit 7d5e13a

Please sign in to comment.