-
Notifications
You must be signed in to change notification settings - Fork 152
57 lines (54 loc) · 1.77 KB
/
Copy pathci-rolling.yaml
File metadata and controls
57 lines (54 loc) · 1.77 KB
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
name: gz_ros2_control CI - Rolling
on:
workflow_dispatch:
pull_request:
branches: [ rolling ]
push:
branches: [ rolling ]
schedule:
# Run every morning to detect flakiness and broken dependencies
- cron: '03 5 * * MON-FRI'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ros-distro: "rolling"
ros-repo-packages: "-testing"
upstream-repos: "gz_ros2_control.rolling.repos"
- ros-distro: "rolling"
ros-repo-packages: "-testing"
upstream-repos: ""
# TODO(anyone): activate once the next ROS 2 rolling sync is out
# - ros-distro: "rolling"
# ros-repo-packages: ""
# upstream-repos: ""
env:
ROS_DISTRO: ${{ matrix.ros-distro }}
container:
image: ghcr.io/ros-controls/ros:${{ matrix.ros-distro }}-ubuntu${{ matrix.ros-repo-packages }}
steps:
- uses: actions/checkout@v7
- name: Checkout ros2_control framework for semi-binary builds
if: ${{ matrix.upstream-repos != '' }}
run: vcs import --input ${{ matrix.upstream-repos }}
- name: Setup colcon workspace
id: configure
shell: bash
run: |
apt-get update
rosdep update
rosdep install --from-paths ./ -i -y --rosdistro ${ROS_DISTRO}
- name: Build project
id: build
run: |
. /opt/ros/${ROS_DISTRO}/local_setup.sh
colcon build --packages-up-to gz_ros2_control_demos gz_ros2_control_tests
- name: Run tests
id: test
run: |
. /opt/ros/${ROS_DISTRO}/local_setup.sh
colcon test --event-handlers console_direct+ --packages-select gz_ros2_control gz_ros2_control_demos gz_ros2_control_tests
colcon test-result