-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (43 loc) · 1.47 KB
/
source-build.yaml
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
name: Source Build
on:
pull_request:
# runs daily to check for dependency issues or flaking tests
schedule:
- cron: "0 3 * * *"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Setup ROS 2 Environment
uses: ros-tooling/[email protected]
with:
required-ros-distributions: humble
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: ros2_ws/src/${{ github.event.repository.name }}
- name: Import Dependencies with vcs
run: |
cd ${{ github.workspace }}/ros2_ws/src
vcs import . < ${{ github.workspace }}/ros2_ws/src/${{ github.event.repository.name }}/ros2.repos
- name: Install Package Dependencies with rosdep
run: |
cd ${{ github.workspace }}/ros2_ws
source /opt/ros/humble/setup.bash
rosdep update
rosdep install --from-paths src --ignore-src -r -y
- name: Build ROS 2 Workspace
run: |
cd ${{ github.workspace }}/ros2_ws
source /opt/ros/humble/setup.bash
colcon build --event-handlers console_cohesion+
- name: Run Tests
run: |
cd ${{ github.workspace }}/ros2_ws
source /opt/ros/humble/setup.bash
colcon test --event-handlers console_direct+
- name: Test Results Summary
run: |
cd ${{ github.workspace }}/ros2_ws
source /opt/ros/humble/setup.bash
colcon test-result --verbose