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

Commit 67b6287

Browse files
committed
Add build and test release_latest workflow
Signed-off-by: Devin Bonnie <[email protected]>
1 parent bb587c7 commit 67b6287

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build & Test release-latest
2+
on:
3+
schedule:
4+
# Run every hour. This helps detect flakiness,
5+
# and broken external dependencies.
6+
- cron: '0 * * * *'
7+
8+
jobs:
9+
build_and_test_release_latest:
10+
name: Build and Test Release Latest ROS ${{ matrix.ros_version }} ${{ matrix.ros_distro }}
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
ros_distro: [kinetic, melodic, dashing]
16+
include:
17+
- ros_distro: kinetic
18+
ubuntu_distro: xenial
19+
ros_version: 1
20+
extra_cmake_args: --cmake-target tests
21+
- ros_distro: melodic
22+
ubuntu_distro: bionic
23+
ros_version: 1
24+
extra_cmake_args: --cmake-target tests
25+
- ros_distro: dashing
26+
ubuntu_distro: bionic
27+
ros_version: 2
28+
extra_cmake_args: ""
29+
container:
30+
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}-ros-base-latest
31+
outputs:
32+
build_result: ${{ steps.build.outcome }}
33+
test_result: ${{ steps.test.outcome }}
34+
steps:
35+
# TODO(setup-ros-docker#7): calling chown is necessary for now
36+
- run: sudo chown -R rosbuild:rosbuild "$HOME" .
37+
# Needed for the CMakeLists.txt setup
38+
- run: export ROS_DISTRO=${{ matrix.ros_distro }}
39+
# Needed for the CMakeLists.txt setup
40+
- run: export ROS_VERSION=${{ matrix.ros_version }}
41+
# Needed to access the vcs repos file from the workspace
42+
- name: Checkout source
43+
uses: actions/checkout@v2
44+
- uses: ros-tooling/[email protected]
45+
with:
46+
source-ros-binary-installation: ${{ matrix.ros_distro }}
47+
package-name: aws_common
48+
extra-cmake-args: ${{ matrix.extra_cmake_args }}
49+
# schedule runs against the default branch (master), so specify release-latest via repos file
50+
vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/release_latest.repos"
51+
- uses: actions/upload-artifact@v1
52+
with:
53+
name: colcon-logs-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}
54+
path: ros_ws/log
55+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repositories:
2+
kinesisvideo-ros1
3+
type: git
4+
url: https://github.com/aws-robotics/kinesisvideo-ros1
5+
version: release-latest

0 commit comments

Comments
 (0)