-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
46 lines (37 loc) · 1.3 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: 'clang_build_test'
description: 'Compile code with colcon and using CLang flags, and run colcon test.'
inputs:
packages_names:
description: 'Name of the colcon packages to build and test'
required: true
colcon_meta_file:
description: 'colcon.meta file to set cmake options. If empty, it does not use any file'
required: false
default: ''
cmake_args:
description: 'flags to pass to colcon build execution'
required: false
default: '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON'
workspace:
description: 'Workspace to build'
required: false
default: '${{ github.workspace }}'
workspace_dependencies:
description: 'Workspace to source where dependencies are'
required: false
default: ''
runs:
using: composite
steps:
- name: Build
uses: eProsima/eProsima-CI/multiplatform/colcon_build@main
with:
colcon_meta_file: ${{ inputs.colcon_meta_file }}
colcon_build_args: '--packages-up-to ${{ inputs.packages_names }}'
cmake_args: '${{ inputs.cmake_args }}'
workspace: ${{ inputs.workspace }}
workspace_dependencies: ${{ inputs.workspace_dependencies }}
- name: Test clang
uses: eProsima/eProsima-CI/multiplatform/clang_tidy_check@main
with:
packages_names: ${{ inputs.packages_names }}