Skip to content

Merge pull request #40 from FraunhoferIOSB/devel #22

Merge pull request #40 from FraunhoferIOSB/devel

Merge pull request #40 from FraunhoferIOSB/devel #22

# 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: Jazzy Jalisco
on: # this determines when this workflow is run
push:
branches: [ main, devel ]
pull_request:
branches: [ main, devel ] # when there is a pull request against master
workflow_dispatch: # allow manually starting this workflow
jobs:
build_and_test:
name: Build & Test
runs-on: ubuntu-latest
strategy:
# fail-fast: false # uncomment if failing jobs should not cancel the others immediately
matrix: # matrix is the product of entries
ROS_DISTRO: [jazzy]
ROS_REPO: [main]
env:
ADDITIONAL_DEBS: "libaravis-dev ros-${{ matrix.ROS_DISTRO }}-diagnostic-msgs" # List the name of DEB(s delimitted by whitespace if multiple DEBs specified). Needs to be full-qualified Ubuntu package name.
CCACHE_DIR: "${{ github.workspace }}/.ccache" # directory for ccache (and how we enable ccache in industrial_ci)
steps:
- uses: actions/checkout@v3 # clone target repository
- uses: actions/cache@v2 # fetch/store the directory used by ccache before/after the ci run
with:
path: ${{ env.CCACHE_DIR }}
# This configuration will always create a new ccache cache starting off from the previous one (if any).
# In this simple version it will be shared between all builds of the same ROS_REPO and ROS_REPO
# and might need some fine-tuning to match the use case
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' # run industrial_ci
env: # either pass all entries explicitly
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
ROS_REPO: ${{ matrix.ROS_REPO }}