Skip to content

Added Github CI.

Added Github CI. #1

Workflow file for this run

# 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: CI
# This determines when this workflow is run
on: [push, pull_request] # on all pushes and PRs
jobs:
industrial_ci:
strategy:
matrix:
env:
- {ROS_DISTRO: noetic, ROS_REPO: testing}
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache # Directory for ccache (and how we enable ccache in industrial_ci)
AFTER_SETUP_TARGET_WORKSPACE: 'cd $BASEDIR/target_ws/src/ros-utils; for d in *; do if [[ "$d" != "cras_docs_common" ]] && [[ "$d" != "cras_cpp_common" ]] && [[ "$d" != "cras_py_common" ]] && [[ "$d" != "cras_topic_tools" ]] && [[ "$d" != "cras_bag_tools" ]] && [[ "$d" != "image_transport_codecs" ]]; then rm -rf "$d"; fi; done'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# This step will fetch/store the directory used by ccache before/after the ci run
- name: Cache ccache
uses: rhaschke/cache@main
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}-${{ github.sha }}-${{ github.run_id }}
restore-keys: |
ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}-${{ github.sha }}
ccache-${{ matrix.env.ROS_DISTRO }}
env:
GHA_CACHE_SAVE: always
# Run industrial_ci
- uses: 'ros-industrial/industrial_ci@master'
env: ${{ matrix.env }}