Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit 53969e6

Browse files
committed
Add master workflow
Signed-off-by: Devin Bonnie <[email protected]>
1 parent 43a78fc commit 53969e6

File tree

2 files changed

+60
-8
lines changed

2 files changed

+60
-8
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build & Test
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
# Run every hour. This helps detect flakiness,
9+
# and broken external dependencies.
10+
- cron: '0 * * * *'
11+
12+
jobs:
13+
build_and_test_master:
14+
name: Build and Test Master ROS ${{ matrix.ros_version }} ${{ matrix.ros_distro }}
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
ros_distro: [kinetic, melodic]
20+
include:
21+
- ros_distro: kinetic
22+
ubuntu_distro: xenial
23+
extra_cmake_args: --cmake-target tests
24+
- ros_distro: melodic
25+
ubuntu_distro: bionic
26+
extra_cmake_args: --cmake-target tests
27+
container:
28+
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}-ros-base-latest
29+
env:
30+
# Needed for the CMakeLists.txt setup
31+
ROS_DISTRO: ${{ matrix.ros_distro }}
32+
ROS_VERSION: 1
33+
steps:
34+
# TODO(setup-ros-docker#7): calling chown is necessary for now
35+
- name: Run setup-ros-docker workaround
36+
run: sudo chown -R rosbuild:rosbuild "$HOME" .
37+
# Needed to access the vcs repos file from the workspace
38+
- name: Checkout source
39+
uses: actions/checkout@v2
40+
- name: Run action-ros-ci to build and test
41+
uses: ros-tooling/[email protected]
42+
with:
43+
source-ros-binary-installation: ${{ matrix.ros_distro }}
44+
package-name: kinesis_video_streamer kinesis_video_msgs
45+
extra-cmake-args: ${{ matrix.extra_cmake_args }}
46+
vcs-repo-file-url: ''
47+
- name: Upload resulting colcon logs
48+
uses: actions/upload-artifact@v1
49+
with:
50+
name: colcon-logs-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}
51+
path: ros_ws/log

.github/workflows/build_and_test_release_latest.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Build & Test release-latest
22
on:
3-
pull_request:
4-
push:
5-
branches:
6-
- master
73
schedule:
84
# Run every hour. This helps detect flakiness,
95
# and broken external dependencies.
@@ -20,8 +16,10 @@ jobs:
2016
include:
2117
- ros_distro: kinetic
2218
ubuntu_distro: xenial
19+
extra_cmake_args: --cmake-target tests
2320
- ros_distro: melodic
2421
ubuntu_distro: bionic
22+
extra_cmake_args: --cmake-target tests
2523
container:
2624
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}-ros-base-latest
2725
env:
@@ -30,18 +28,21 @@ jobs:
3028
ROS_VERSION: 1
3129
steps:
3230
# TODO(setup-ros-docker#7): calling chown is necessary for now
33-
- run: sudo chown -R rosbuild:rosbuild "$HOME" .
31+
- name: Run setup-ros-docker workaround
32+
run: sudo chown -R rosbuild:rosbuild "$HOME" .
3433
# Needed to access the vcs repos file from the workspace
3534
- name: Checkout source
3635
uses: actions/checkout@v2
37-
- uses: ros-tooling/[email protected]
36+
- name: Run action-ros-ci to build and test
37+
uses: ros-tooling/[email protected]
3838
with:
3939
source-ros-binary-installation: ${{ matrix.ros_distro }}
4040
package-name: kinesis_video_streamer kinesis_video_msgs
41+
extra-cmake-args: ${{ matrix.extra_cmake_args }}
4142
# schedule runs against the default branch (master), so specify release-latest via repos file
4243
vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/release_latest.repos"
43-
- uses: actions/upload-artifact@v1
44+
- name: Upload resulting colcon logs
45+
uses: actions/upload-artifact@v1
4446
with:
4547
name: colcon-logs-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}
4648
path: ros_ws/log
47-

0 commit comments

Comments
 (0)