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

Commit be1badf

Browse files
authored
Merge pull request #54 from aws-robotics/script/build-and-test-master
Add master workflow
2 parents 43a78fc + b82111b commit be1badf

File tree

2 files changed

+54
-8
lines changed

2 files changed

+54
-8
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
- ros_distro: melodic
24+
ubuntu_distro: bionic
25+
container:
26+
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}-ros-base-latest
27+
env:
28+
# Needed for the CMakeLists.txt setup
29+
ROS_DISTRO: ${{ matrix.ros_distro }}
30+
ROS_VERSION: 1
31+
steps:
32+
# TODO(setup-ros-docker#7): calling chown is necessary for now
33+
- name: Run setup-ros-docker workaround
34+
run: sudo chown -R rosbuild:rosbuild "$HOME" .
35+
# Needed to access the vcs repos file from the workspace
36+
- name: Checkout source
37+
uses: actions/checkout@v2
38+
- name: Run action-ros-ci to build and test
39+
uses: ros-tooling/[email protected]
40+
with:
41+
source-ros-binary-installation: ${{ matrix.ros_distro }}
42+
package-name: kinesis_video_streamer kinesis_video_msgs
43+
vcs-repo-file-url: ''
44+
- name: Upload resulting colcon logs
45+
uses: actions/upload-artifact@v1
46+
with:
47+
name: colcon-logs-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}
48+
path: ros_ws/log

.github/workflows/build_and_test_release_latest.yml

Lines changed: 6 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.
@@ -30,18 +26,20 @@ jobs:
3026
ROS_VERSION: 1
3127
steps:
3228
# TODO(setup-ros-docker#7): calling chown is necessary for now
33-
- run: sudo chown -R rosbuild:rosbuild "$HOME" .
29+
- name: Run setup-ros-docker workaround
30+
run: sudo chown -R rosbuild:rosbuild "$HOME" .
3431
# Needed to access the vcs repos file from the workspace
3532
- name: Checkout source
3633
uses: actions/checkout@v2
37-
- uses: ros-tooling/[email protected]
34+
- name: Run action-ros-ci to build and test
35+
uses: ros-tooling/[email protected]
3836
with:
3937
source-ros-binary-installation: ${{ matrix.ros_distro }}
4038
package-name: kinesis_video_streamer kinesis_video_msgs
4139
# schedule runs against the default branch (master), so specify release-latest via repos file
4240
vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/release_latest.repos"
43-
- uses: actions/upload-artifact@v1
41+
- name: Upload resulting colcon logs
42+
uses: actions/upload-artifact@v1
4443
with:
4544
name: colcon-logs-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}
4645
path: ros_ws/log
47-

0 commit comments

Comments
 (0)