Merge pull request #51 from loco-3d/pre-commit-ci-update-config #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] # on all pushes and PRs | |
jobs: | |
CI: | |
strategy: | |
matrix: | |
env: | |
- {ROS_DISTRO: melodic, CLANG_FORMAT_CHECK: file, CLANG_FORMAT_VERSION: "6.0"} | |
- {ROS_DISTRO: melodic} | |
- {ROS_DISTRO: noetic} | |
env: | |
CCACHE_DIR: /github/home/.ccache # Enable ccache | |
PARALLEL_BUILDS: 1 | |
UPSTREAM_WORKSPACE: .ci.rosinstall | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# 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 }} |