mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
Port github actions
This commit is contained in:
parent
ed459702bd
commit
5bb6596f2f
26
.github/workflows/ci.yaml
vendored
26
.github/workflows/ci.yaml
vendored
@ -14,32 +14,36 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
env:
|
env:
|
||||||
- IMAGE: melodic-source
|
# TODO: We have to use -Wno-redundant-decls since rosidl_generator_c is generating broken headers
|
||||||
|
- IMAGE: galactic-source
|
||||||
NAME: ccov
|
NAME: ccov
|
||||||
TARGET_CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage"
|
TARGET_CMAKE_ARGS: -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage"
|
||||||
- IMAGE: master-source
|
- IMAGE: rolling-source
|
||||||
CXXFLAGS: >-
|
CXXFLAGS: >-
|
||||||
-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls
|
-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wno-redundant-decls
|
||||||
-Wno-unused-parameter -Wno-unused-function -Wno-deprecated-copy -Wno-unused-but-set-parameter
|
-Wno-unused-parameter -Wno-unused-function -Wno-deprecated-copy -Wno-unused-but-set-parameter
|
||||||
- IMAGE: noetic-source
|
- IMAGE: rolling-source
|
||||||
CXX: clang++
|
CXX: clang++
|
||||||
CLANG_TIDY: true
|
CLANG_TIDY: true
|
||||||
CXXFLAGS: >-
|
CXXFLAGS: >-
|
||||||
-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls
|
-Werror -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wno-redundant-decls
|
||||||
-Wno-unused-parameter -Wno-unused-function -Wno-deprecated-copy
|
-Wno-unused-parameter -Wno-unused-function -Wno-deprecated-copy
|
||||||
- IMAGE: noetic-source
|
# Add fast_unwind_on_malloc=0 to fix stacktraces being too short or do not make sense
|
||||||
|
# see https://github.com/google/sanitizers/wiki/AddressSanitizer
|
||||||
|
- IMAGE: rolling-source
|
||||||
NAME: asan
|
NAME: asan
|
||||||
DOCKER_RUN_OPTS: >-
|
DOCKER_RUN_OPTS: >-
|
||||||
-e PRELOAD=libasan.so.5
|
-e PRELOAD=libasan.so.5
|
||||||
-e LSAN_OPTIONS="suppressions=$PWD/.github/workflows/lsan.suppressions"
|
-e LSAN_OPTIONS="suppressions=$PWD/.github/workflows/lsan.suppressions,fast_unwind_on_malloc=0"
|
||||||
TARGET_CMAKE_ARGS: -DCMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer -O1"
|
TARGET_CMAKE_ARGS: -DCMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer -O1"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CATKIN_LINT: true
|
|
||||||
CLANG_TIDY_ARGS: --fix --fix-errors --format-style=file
|
CLANG_TIDY_ARGS: --fix --fix-errors --format-style=file
|
||||||
DOCKER_IMAGE: moveit/moveit:${{ matrix.env.IMAGE }}
|
DOCKER_IMAGE: ghcr.io/ros-planning/moveit2:${{ matrix.env.IMAGE }}
|
||||||
UNDERLAY: /root/ws_moveit/install
|
UNDERLAY: /root/ws_moveit/install
|
||||||
DOWNSTREAM_WORKSPACE: "github:ubi-agni/mtc_demos#master github:TAMS-Group/mtc_pour#master"
|
# TODO: Port to ROS2
|
||||||
|
# DOWNSTREAM_WORKSPACE: "github:ubi-agni/mtc_demos#master github:TAMS-Group/mtc_pour#master"
|
||||||
|
UPSTREAM_WORKSPACE: .repos
|
||||||
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
||||||
BASEDIR: ${{ github.workspace }}/.work
|
BASEDIR: ${{ github.workspace }}/.work
|
||||||
CACHE_PREFIX: "${{ matrix.env.IMAGE }}${{ contains(matrix.env.TARGET_CMAKE_ARGS, '--coverage') && '-ccov' || '' }}"
|
CACHE_PREFIX: "${{ matrix.env.IMAGE }}${{ contains(matrix.env.TARGET_CMAKE_ARGS, '--coverage') && '-ccov' || '' }}"
|
||||||
@ -48,7 +52,7 @@ jobs:
|
|||||||
CC: ${{ matrix.env.CLANG_TIDY && 'clang' }}
|
CC: ${{ matrix.env.CLANG_TIDY && 'clang' }}
|
||||||
CXX: ${{ matrix.env.CLANG_TIDY && 'clang++' }}
|
CXX: ${{ matrix.env.CLANG_TIDY && 'clang++' }}
|
||||||
|
|
||||||
name: "${{ matrix.env.IMAGE }}${{ matrix.env.NAME && ' • ' || ''}}${{ matrix.env.NAME }}${{ matrix.env.CATKIN_LINT && ' • catkin_lint' || ''}}${{ matrix.env.CLANG_TIDY && ' • clang-tidy' || '' }}"
|
name: "${{ matrix.env.IMAGE }}${{ matrix.env.NAME && ' • ' || ''}}${{ matrix.env.NAME }}${{ matrix.env.CLANG_TIDY && ' • clang-tidy' || '' }}"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
3
.github/workflows/format.yaml
vendored
3
.github/workflows/format.yaml
vendored
@ -17,9 +17,6 @@ jobs:
|
|||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
- name: Install clang-format-10
|
- name: Install clang-format-10
|
||||||
run: sudo apt-get install clang-format-10
|
run: sudo apt-get install clang-format-10
|
||||||
- uses: rhaschke/install-catkin_lint-action@v1.0
|
|
||||||
with:
|
|
||||||
distro: noetic
|
|
||||||
- uses: pre-commit/action@v2.0.0
|
- uses: pre-commit/action@v2.0.0
|
||||||
id: precommit
|
id: precommit
|
||||||
- name: Upload pre-commit changes
|
- name: Upload pre-commit changes
|
||||||
|
|||||||
@ -42,10 +42,3 @@ repos:
|
|||||||
language: system
|
language: system
|
||||||
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
|
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
|
||||||
args: ['-fallback-style=none', '-i']
|
args: ['-fallback-style=none', '-i']
|
||||||
- id: catkin_lint
|
|
||||||
name: catkin_lint
|
|
||||||
description: Check package.xml and cmake files
|
|
||||||
entry: catkin_lint .
|
|
||||||
language: system
|
|
||||||
always_run: true
|
|
||||||
pass_filenames: false
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user