Skip to content

Commit

Permalink
Merge pull request ros-industrial#187 from gavanderhoorn/migrate_to_gha
Browse files Browse the repository at this point in the history
Switch to Github Actions for CI
  • Loading branch information
gavanderhoorn authored Sep 29, 2021
2 parents dcb7286 + 50dccbe commit f5cd4f5
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 29 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci_bionic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI - Ubuntu Bionic

on:
# direct pushes to protected branches are not supported
pull_request:
# run every day, at 8am UTC
schedule:
- cron: '0 8 * * *'
# allow manually starting this workflow
workflow_dispatch:

jobs:
industrial_ci:
name: ROS Melodic (${{ matrix.ros_repo }})
runs-on: ubuntu-20.04

strategy:
fail-fast: false
matrix:
ros_distro: [ melodic ]
ros_repo: [ main, testing ]

env:
CATKIN_LINT: true
CATKIN_LINT_ARGS: --ignore launch_depend --ignore unconfigured_build_depend
CCACHE_DIR: "${{ github.workspace }}/.ccache"

steps:
- name: Fetch repository
uses: actions/checkout@v2

- name: ccache cache
uses: actions/cache@v2
with:
path: ${{ env.CCACHE_DIR }}
# we always want the ccache cache to be persisted, as we cannot easily
# determine whether dependencies have changed, and ccache will manage
# updating the cache for us. Adding 'run_id' to the key will force an
# upload at the end of the job.
key: ccache-${{ matrix.ros_distro }}-${{ matrix.ros_repo }}-${{github.run_id}}
restore-keys: |
ccache-${{ matrix.ros_distro }}-${{ matrix.ros_repo }}
- name: Run industrial_ci
uses: ros-industrial/industrial_ci@master
env:
ROS_DISTRO: ${{ matrix.ros_distro }}
ROS_REPO: ${{ matrix.ros_repo }}
50 changes: 50 additions & 0 deletions .github/workflows/ci_focal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI - Ubuntu Focal

on:
# direct pushes to protected branches are not supported
pull_request:
# run every day, at 8am UTC
schedule:
- cron: '0 8 * * *'
# allow manually starting this workflow
workflow_dispatch:

jobs:
industrial_ci:
name: ROS Noetic (${{ matrix.ros_repo }})
runs-on: ubuntu-20.04

strategy:
fail-fast: false
matrix:
ros_distro: [ noetic ]
ros_repo: [ main, testing ]

env:
CATKIN_LINT: true
CATKIN_LINT_ARGS: --ignore launch_depend --ignore unconfigured_build_depend
CCACHE_DIR: "${{ github.workspace }}/.ccache"
# using abb_driver from source as it hasn't been released for Noetic
UPSTREAM_WORKSPACE: 'github:ros-industrial/abb_driver#melodic-devel'

steps:
- name: Fetch repository
uses: actions/checkout@v2

- name: ccache cache
uses: actions/cache@v2
with:
path: ${{ env.CCACHE_DIR }}
# we always want the ccache cache to be persisted, as we cannot easily
# determine whether dependencies have changed, and ccache will manage
# updating the cache for us. Adding 'run_id' to the key will force an
# upload at the end of the job.
key: ccache-${{ matrix.ros_distro }}-${{ matrix.ros_repo }}-${{github.run_id}}
restore-keys: |
ccache-${{ matrix.ros_distro }}-${{ matrix.ros_repo }}
- name: Run industrial_ci
uses: ros-industrial/industrial_ci@master
env:
ROS_DISTRO: ${{ matrix.ros_distro }}
ROS_REPO: ${{ matrix.ros_repo }}
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# ABB

[![Build Status](http://build.ros.org/job/Kdev__abb__ubuntu_xenial_amd64/badge/icon)](http://build.ros.org/job/Kdev__abb__ubuntu_xenial_amd64)
[![Build Status: Ubuntu Bionic (Actions)](https://github.com/ros-industrial/abb/workflows/CI%20-%20Ubuntu%20Bionic/badge.svg?branch=kinetic-devel)](https://github.com/ros-industrial/abb/actions?query=workflow%3A%22CI+-+Ubuntu+Bionic%22)
[![Build Status: Ubuntu Focal (Actions)](https://github.com/ros-industrial/abb/workflows/CI%20-%20Ubuntu%20Focal/badge.svg?branch=kinetic-devel)](https://github.com/ros-industrial/abb/actions?query=workflow%3A%22CI+-+Ubuntu+Focal%22)

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)

[![support level: community](https://img.shields.io/badge/support%20level-community-lightgray.png)](http://rosindustrial.org/news/2016/10/7/better-supporting-a-growing-ros-industrial-software-platform)
[![support level: community](https://img.shields.io/badge/support%20level-community-lightgray.svg)](http://rosindustrial.org/news/2016/10/7/better-supporting-a-growing-ros-industrial-software-platform)

[ROS-Industrial][] ABB meta-package. See the [ROS wiki][] page for more information.

Expand Down

0 comments on commit f5cd4f5

Please sign in to comment.