diff --git a/.github/workflows/ros_ci.yml b/.github/workflows/ros_ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..ff06681c302c473a015c58ae66c82db92a276a9d --- /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 }}