-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
75 lines (63 loc) · 2.43 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: colcon_build
description: Use colcon build command to build multiple packages
inputs:
colcon_meta_file:
description: colcon.meta file to set cmake options. If empty, it uses an empty file
required: false
default: ''
colcon_build_args:
description: Arguments to pass to colcon build command (use cmake_args input for CMake options)
required: false
default: ''
colcon_build_args_default:
description: Default arguments to pass to colcon build command (use cmake_args input for CMake options)
required: false
default: '--event-handlers=console_direct+'
cmake_args:
description: CMake arguments
required: false
default: ''
cmake_args_default:
description: Default CMake arguments
required: false
default: ''
cmake_build_type:
description: Set the cmake build type
required: false
default: Release
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: Run in ubuntu or macOS
uses: eProsima/eProsima-CI/ubuntu/colcon_build@main
if: runner.os == 'Linux' || runner.os == 'macOS'
with:
colcon_meta_file: ${{ inputs.colcon_meta_file }}
colcon_build_args: ${{ inputs.colcon_build_args }}
colcon_build_args_default: ${{ inputs.colcon_build_args_default }}
cmake_args: ${{ inputs.cmake_args }}
cmake_args_default: ${{ inputs.cmake_args_default }}
workspace: ${{ inputs.workspace }}
workspace_dependencies: ${{ inputs.workspace_dependencies }}
cmake_build_type: ${{ inputs.cmake_build_type }}
- name: Run in windows
uses: eProsima/eProsima-CI/windows/colcon_build@main
if: runner.os == 'Windows'
with:
colcon_meta_file: ${{ inputs.colcon_meta_file }}
colcon_build_args: ${{ inputs.colcon_build_args }}
colcon_build_args_default: ${{ inputs.colcon_build_args_default }}
cmake_args: ${{ inputs.cmake_args }}
# TODO (jparisu) find a way to use it for windows, as there is not a common Werror flag for both
cmake_args_default: ${{ inputs.cmake_args_default }}
workspace: ${{ inputs.workspace }}
workspace_dependencies: ${{ inputs.workspace_dependencies }}
cmake_build_type: ${{ inputs.cmake_build_type }}