Skip to content

ROS-Industrial CI - push #1456

ROS-Industrial CI - push

ROS-Industrial CI - push #1456

Workflow file for this run

name: ROS-Industrial CI
run-name: ROS-Industrial CI - ${{ github.event_name }}
# This determines when this workflow is run
# on: [push, pull_request] # on all pushes and PRs
# or more fine-grained
on:
push:
branches:
- master
- sunrise_driver_original
- feature/**
- fix/**
paths-ignore:
- doc/**
- '**.md'
- LICENSE
- .github/workflows/deploy_wiki.yml
# When there is a pull request against master
pull_request:
branches:
- master
schedule:
# Run every Monday at 1PM UTC
- cron: 0 13 * * 1
jobs:
industrial_ci:
name: ROS-Industrial CI
strategy:
matrix:
env:
- ROS_REPO: ros
BUILDER: colcon
ANALYZER: sonarqube
TEST_COVERAGE: true
# Hacky solution needed to be able to build upstream WS:
# kuka_driver_interfaces and kuka_drivers_core must be also added to upstream
UPSTREAM_WORKSPACE: 'github:kroshu/kuka_robot_descriptions#master github:kroshu/kuka_controllers#master github:kroshu/kuka_drivers#master -kuka_drivers/examples -kuka_drivers/kuka_drivers -kuka_drivers/kuka_iiqka_eac_driver -kuka_drivers/kuka_kss_rsi_driver -kuka_drivers/kuka_sunrise_fri_driver'
ROS_DISTRO: humble
env:
CCACHE_DIR: /github/home/.ccache # Directory for ccache (and how we enable ccache in industrial_ci)
BEFORE_BUILD_TARGET_WORKSPACE: 'apt update && apt install -y cmake build-essential pkg-config libssl-dev protobuf-compiler-grpc libgrpc++-dev && cd /home/runner/work && git clone https://github.com/kroshu/kuka-external-control-sdk.git && mkdir -p /home/runner/work/kuka-external-control-sdk/kuka-external-control-sdk/build && cd /home/runner/work/kuka-external-control-sdk/kuka-external-control-sdk/build && cmake .. && make install'
EVENT_NAME: ${{ github.event_name }}
BRANCH: ${{ github.event.ref }}
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
PR_BASE: ${{ github.event.pull_request.base.ref }}
PR_NUMBER: ${{ github.event.number }}
ANALYZER_TOKEN: ${{ secrets.ANALYZER_TOKEN }}
DEBUG_BASH: true
DOCKER_RUN_OPTS: '-e LD_LIBRARY_PATH=/root/.local/lib'
runs-on: ubuntu-latest
steps:
- name: Reset ANALYZER for scheduled and push runs
run: |
if [[ "${{ github.event_name }}" == "schedule" ]] || [[ "${{ github.event_name }}" == "push" ]]; then
echo "ANALYZER=" >> $GITHUB_ENV
fi
- uses: actions/checkout@v2
with:
fetch-depth: 0
# 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: 'kroshu/industrial_ci@master'
env: ${{ matrix.env }}