-
Notifications
You must be signed in to change notification settings - Fork 8
132 lines (130 loc) · 4.39 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: clearpath_robot_ci
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *" # every day at midnight
jobs:
clearpath_robot_osrf_industrial_ci:
name: Jazzy OSRF Industrial
strategy:
matrix:
env:
- {ROS_REPO: testing, ROS_DISTRO: jazzy, ROSDEP_SKIP_KEYS: "micro_ros_agent sevcon_traction umx_driver valence_bms_driver"}
- {ROS_REPO: main, ROS_DISTRO: jazzy, ROSDEP_SKIP_KEYS: "micro_ros_agent sevcon_traction umx_driver valence_bms_driver"}
fail-fast: false
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: 'ros-industrial/industrial_ci@master'
env: ${{matrix.env}}
clearpath_robot_cpr_ci:
name: Jazzy Clearpath Release
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: jazzy
- name: clearpath-package-server
run: |
sudo apt install wget
wget https://packages.clearpathrobotics.com/public.key -O - | sudo apt-key add -
sudo sh -c 'echo "deb https://packages.clearpathrobotics.com/stable/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/clearpath-latest.list'
sudo apt-get update
- uses: ros-tooling/[email protected]
id: action_ros_ci_step
with:
target-ros2-distro: jazzy
package-name: |
clearpath_diagnostics
clearpath_generator_robot
clearpath_robot
clearpath_sensors
clearpath_robot_src_ci:
name: Jazzy Clearpath Source
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: jazzy
- uses: ros-tooling/[email protected]
id: action_ros_ci_step
with:
target-ros2-distro: jazzy
package-name: |
clearpath_diagnostics
clearpath_generator_robot
clearpath_robot
clearpath_sensors
vcs-repo-file-url: dependencies.repos
clearpath_robot_src_head_ci:
name: Jazzy Clearpath Source with Head Branch
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: clearpathrobotics/repos-dep-update-action
ref: 0.0.1
path: repos-dep-update-action
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Use repos update action
uses: ./repos-dep-update-action/
with:
branch: ${{ steps.extract_branch.outputs.branch }}
input: dependencies.repos
output: updated_dependencies.repos
- name: Updated dependencies
run: |
cat updated_dependencies.repos
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: jazzy
- uses: ros-tooling/[email protected]
id: action_ros_ci_step
with:
target-ros2-distro: jazzy
package-name: |
clearpath_diagnostics
clearpath_generator_robot
clearpath_robot
clearpath_sensors
vcs-repo-file-url: updated_dependencies.repos
clearpath_robot_src_base_ci:
if: github.event_name == 'pull_request'
name: Jazzy Clearpath Source with Base Branch
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: clearpathrobotics/repos-dep-update-action
ref: 0.0.1
path: repos-dep-update-action
- name: Use repos update action
uses: ./repos-dep-update-action/
with:
branch: ${{ github.event.pull_request.base.ref }}
input: dependencies.repos
output: updated_dependencies.repos
- name: Updated dependencies
run: |
cat updated_dependencies.repos
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: jazzy
- uses: ros-tooling/[email protected]
id: action_ros_ci_step
with:
target-ros2-distro: jazzy
package-name: |
clearpath_diagnostics
clearpath_generator_robot
clearpath_robot
clearpath_sensors
vcs-repo-file-url: updated_dependencies.repos