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

Commit 10159cd

Browse files
authored
Add master workflow (#66)
* Add master workflow Signed-off-by: Devin Bonnie <[email protected]> * Remove cmake args Signed-off-by: Devin Bonnie <[email protected]>
1 parent 2d42638 commit 10159cd

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
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: cloudwatch_logger
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
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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]
16+
include:
17+
- ros_distro: kinetic
18+
ubuntu_distro: xenial
19+
- ros_distro: melodic
20+
ubuntu_distro: bionic
21+
container:
22+
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}-ros-base-latest
23+
env:
24+
# Needed for the CMakeLists.txt setup
25+
ROS_DISTRO: ${{ matrix.ros_distro }}
26+
ROS_VERSION: 1
27+
steps:
28+
# TODO(setup-ros-docker#7): calling chown is necessary for now
29+
- name: Run setup-ros-docker workaround
30+
run: sudo chown -R rosbuild:rosbuild "$HOME" .
31+
# Needed to access the vcs repos file from the workspace
32+
- name: Checkout source
33+
uses: actions/checkout@v2
34+
- name: Run action-ros-ci to build and test
35+
uses: ros-tooling/[email protected]
36+
with:
37+
source-ros-binary-installation: ${{ matrix.ros_distro }}
38+
package-name: cloudwatch_logger
39+
# schedule runs against the default branch (master), so specify release-latest via repos file
40+
vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/release_latest.repos"
41+
- name: Upload resulting colcon logs
42+
uses: actions/upload-artifact@v1
43+
with:
44+
name: colcon-logs-${{ matrix.ubuntu_distro }}-ros-${{ matrix.ros_distro }}
45+
path: ros_ws/log

0 commit comments

Comments
 (0)