From b55c10dde71f81aaa51e199f4b64071d31e882eb Mon Sep 17 00:00:00 2001
From: Wolfgang Merkt <wxmerkt@users.noreply.github.com>
Date: Sun, 25 Apr 2021 06:34:15 +0100
Subject: [PATCH] Add ROS-CI (#229)

* Add ROS-CI using GitHub Actions based on Industrial-CI

* [CI] Rename ROS-CI
---
 .github/workflows/ros_ci.yml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 .github/workflows/ros_ci.yml

diff --git a/.github/workflows/ros_ci.yml b/.github/workflows/ros_ci.yml
new file mode 100644
index 00000000..ff06681c
--- /dev/null
+++ b/.github/workflows/ros_ci.yml
@@ -0,0 +1,31 @@
+# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
+# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)
+
+name: ROS-CI
+
+# This determines when this workflow is run
+on: [push, pull_request] # on all pushes and PRs
+
+jobs:
+  CI:
+    strategy:
+      matrix:
+        env:
+          - {ROS_DISTRO: melodic}
+          - {ROS_DISTRO: noetic}
+    env:
+      CCACHE_DIR: /github/home/.ccache # Enable ccache
+      BUILDER: catkin_tools
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          submodules: recursive
+      # This step will fetch/store the directory used by ccache before/after the ci run
+      - uses: actions/cache@v2
+        with:
+          path: ${{ env.CCACHE_DIR }}
+          key: ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}
+      # Run industrial_ci
+      - uses: 'ros-industrial/industrial_ci@master'
+        env: ${{ matrix.env }}
-- 
GitLab