Skip to content

Merge branch urdfdom-independence into obese-devel #83

Merge branch urdfdom-independence into obese-devel

Merge branch urdfdom-independence into obese-devel #83

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
on:
workflow_dispatch:
pull_request:
push:
jobs:
default:
strategy:
fail-fast: false
matrix:
distro: [melodic, noetic]
include:
- distro: noetic
env:
CLANG_TIDY: pedantic
CXXFLAGS: -Wno-error=deprecated-declarations
env:
CXXFLAGS: "-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls ${{ matrix.env.CXXFLAGS }}"
CLANG_TIDY_ARGS: --fix --fix-errors --format-style=file -checks="-clang-diagnostic-deprecated-declarations,-clang-analyzer-cplusplus.NewDeleteLeaks"
CATKIN_LINT: true
BASEDIR: ${{ github.workspace }}/.work
AFTER_INIT: |
# Fix for https://github.blog/2022-04-12-git-security-vulnerability-announced
apt-get -qq install -y --no-upgrade --no-install-recommends git-core | grep -E 'Setting up'
git config --global --add safe.directory "*"
CCACHE_DIR: ${{ github.workspace }}/.ccache
CACHE_PREFIX: ${{ matrix.distro }}
ROS_DISTRO: ${{ matrix.distro }}
UPSTREAM_WORKSPACE: rosinstall
name: "${{ matrix.distro }}${{ matrix.env.CLANG_TIDY && (github.event_name != 'workflow_dispatch' && ' • clang-tidy (delta)' || ' • clang-tidy (all)') || '' }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache ccache
uses: rhaschke/cache@main
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
restore-keys: |
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
ccache-${{ env.CACHE_PREFIX }}
env:
GHA_CACHE_SAVE: always
- name: industrial_ci
id: ici
uses: ros-industrial/industrial_ci@master
env: ${{ matrix.env || env }}
- name: Upload test artifacts (on failure)
uses: actions/upload-artifact@v3
if: failure() && (steps.ici.outputs.run_target_test || steps.ici.outputs.target_test_results)
with:
name: test-results
path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml
- name: Upload clang-tidy changes
uses: rhaschke/upload-git-patch-action@main
if: always() && matrix.env.CLANG_TIDY
with:
name: clang-tidy
path: ${{ env.BASEDIR }}/target_ws/src/$(basename $(pwd))