Skip to content

Commit

Permalink
Resuable CI (#20)
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <yadunund@openrobotics.org>
  • Loading branch information
Yadunund committed Mar 17, 2024
1 parent 8992a8e commit 4bbdf56
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 44 deletions.
58 changes: 16 additions & 42 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,21 @@ name: build
on:
pull_request:
push:
branches: [ main ]
defaults:
run:
shell: bash

branches:
- main
workflow_dispatch:
jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-jammy-latest
steps:
- name: deps
uses: ros-tooling/setup-ros@v0.3
with:
required-ros-distributions: humble
- name: install_clang
run: sudo apt update && sudo apt install -y clang clang-tools lld
- name: build
uses: ros-tooling/action-ros-ci@v0.2
env:
CC: clang
CXX: clang++
with:
target-ros2-distro: humble
# build all packages listed in the meta package
package-name: |
rmf_human_detector_oakd
rmf_obstacle_detector_laserscan
vcs-repo-file-url: |
https://raw.githubusercontent.com/open-rmf/rmf/main/rmf.repos
colcon-defaults: |
{
"build": {
"mixin": ["coverage-gcc","lld"]
}
}
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
- 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_obstacle_detectors
uses: open-rmf/rmf_ci_templates/.github/workflows/reusable_build.yaml@main
with:
dist-matrix: |
[{"ros_distribution": "iron",
"ubuntu_distribution": "jammy"},
{"ros_distribution": "rolling",
"ubuntu_distribution": "noble"}]
# NOTE: Avoid adding comments in the package lines, this can break some of the called scripts in github actions
packages: |
rmf_human_detector
rmf_human_detector_oakd
rmf_obstacle_detector_laserscan
4 changes: 2 additions & 2 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
docker_image: ['ros:humble-ros-base']
docker_image: ['ros:rolling-ros-base']
container:
image: ${{ matrix.docker_image }}
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: uncrustify
run: |
sudo apt update && sudo apt install wget
Expand Down

0 comments on commit 4bbdf56

Please sign in to comment.