Skip to content

Update CI to ROS 2

Update CI to ROS 2 #15

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
branches:
- ros2-main
push:
branches:
- ros2-main
jobs:
industrial_ci:
strategy:
matrix:
ros_distro: [humble, iron, rolling]
ros_repo: [ main, testing ]
fail-fast: false
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ccache cache
uses: actions/cache@v4
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 }}
- uses: 'ros-industrial/industrial_ci@master'
env:
ROS_DISTRO: ${{ matrix.ros_distro }}
ROS_REPO: ${{ matrix.ros_repo }}