Skip to content

Commit ed0d0c1

Browse files
committed
[CI] Reusable CI
Signed-off-by: Esteban Martinena <[email protected]>
1 parent 6c132de commit ed0d0c1

File tree

1 file changed

+7
-35
lines changed

1 file changed

+7
-35
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,15 @@
11
name: build
22
on:
3-
push:
43
pull_request:
54
schedule:
65
- cron: '35 0 * * *'
6+
workflow_dispatch:
77

88
jobs:
99
build_and_test:
10-
name: Build and test
11-
runs-on: ubuntu-latest
12-
container:
13-
image: ubuntu:latest
14-
steps:
15-
- name: pwd
16-
run: pwd
17-
- name: deps
18-
uses: ros-tooling/[email protected]
19-
with:
20-
required-ros-distributions: rolling
21-
- name: build
22-
uses: ros-tooling/[email protected]
23-
with:
24-
target-ros2-distro: rolling
25-
# build all packages listed in the meta package
26-
package-name: |
27-
rmf_utils
28-
vcs-repo-file-url: |
29-
https://raw.githubusercontent.com/open-rmf/rmf/main/rmf.repos
30-
colcon-defaults: |
31-
{
32-
"build": {
33-
"mixin": ["coverage-gcc"]
34-
}
35-
}
36-
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
37-
- name: Upload coverage to Codecov
38-
uses: codecov/codecov-action@v1
39-
with:
40-
files: ros_ws/lcov/total_coverage.info
41-
flags: tests
42-
name: lean_and_mean_codecov_bot
43-
10+
name: rmf_utils
11+
uses: open-rmf/rmf_ci_templates/.github/workflows/reusable_build.yaml@main
12+
with:
13+
# NOTE: Avoid adding comments in the packages lines, this can break some of the called scripts in github actions
14+
packages: |
15+
rmf_utils

0 commit comments

Comments
 (0)