forked from n-ando/OpenRTM-aist
-
Notifications
You must be signed in to change notification settings - Fork 12
/
azure-pipelines.yml
130 lines (119 loc) · 3.81 KB
/
azure-pipelines.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
trigger:
branches:
include:
- '*'
paths:
include:
- azure-pipelines.yml
- .azure-pipelines
- CMakeLists.txt
- etc/
- examples/
- src/
- utils/
pr:
branches:
include:
- '*'
paths:
include:
- azure-pipelines.yml
- .azure-pipelines
- CMakeLists.txt
- etc/
- examples/
- src/
- utils/
variables:
omniorb: omniORB-4.3.2-x64-vc14-py38
omniorbUrl: https://openrtm.org/pub/omniORB/win32/omniORB-4.3.2
ros2: ros2-jazzy-20240705-windows-release-amd64
ros2Url: https://github.com/ros2/ros2/releases/download/release-jazzy-20240705/
jobs:
- job: Build
strategy:
matrix:
vs2022:
imageVersion: 'windows-2022'
vs2019:
imageVersion: 'windows-2019'
pool:
vmImage: $(imageVersion)
steps:
- template: .azure-pipelines/openrtm-build-environment.yml
parameters:
omniorb: $(omniorb)
omniorbUrl: $(omniorbUrl)
ros2: $(ros2)
ros2Url: $(ros2Url)
- task: CMake@1
env:
PYTHONPATH: '$(Pipeline.Workspace)\ros2-windows\Lib\site-packages;$(PYTHONPATH)'
ROS_DISTRO: 'jazzy'
ROS_PYTHON_VERSION: '3'
ROS_VERSION: '2'
AMENT_PREFIX_PATH: '$(Pipeline.Workspace)\ros2-windows'
CMAKE_PREFIX_PATH: '$(Pipeline.Workspace)\ros2-windows'
PKG_CONFIG_PATH: '$(Pipeline.Workspace)\ros2-windows\lib\pkgconfig'
COLCON_PREFIX_PATH: '$(Pipeline.Workspace)\ros2-windows'
inputs:
workingDirectory: 'build'
cmakeArgs:
-A x64
-DRTM_VC_VER=vc14
-DCORBA=omniORB
-DORB_ROOT=$(Pipeline.Workspace)\$(omniorb)
-DOBSERVER_ENABLE=ON
-DSSL_ENABLE=ON
-DFASTRTPS_ENABLE=ON
-DROS2_ENABLE=ON
$(Build.SourcesDirectory)
- task: VSBuild@1
inputs:
solution: 'build/OpenRTM_aist.sln'
configuration: 'Release'
maximumCpuCount: true
createLogFile: true
logFileVerbosity: 'minimal'
- job: Analyze
pool:
vmImage: 'windows-latest'
variables:
vcPath: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC'
steps:
- template: .azure-pipelines/openrtm-build-environment.yml
parameters:
omniorb: $(omniorb)
omniorbUrl: $(omniorbUrl)
ros2: $(ros2)
ros2Url: $(ros2Url)
- script: |
call "$(vcPath)\Auxiliary\Build\vcvars64.bat"
cmake ^
-B $(Build.SourcesDirectory)/build ^
-G Ninja ^
-DCMAKE_C_COMPILER:FILEPATH="$(vcPath)\Tools\Llvm\bin\clang-cl.exe" ^
-DCMAKE_CXX_COMPILER:FILEPATH="$(vcPath)\Tools\Llvm\bin\clang-cl.exe" ^
-DCMAKE_LINKER:FILEPATH="$(vcPath)\Tools\Llvm\bin\lld-link.exe" ^
-DCMAKE_BUILD_TYPE=Release ^
-DRTM_VC_VER=vc14 ^
-DCORBA=omniORB ^
-DORB_ROOT=$(Pipeline.Workspace)\$(omniorb) ^
-DOBSERVER_ENABLE=ON ^
-DSSL_ENABLE=ON ^
-DFASTRTPS_ENABLE=ON ^
-DROS2_ENABLE=ON ^
$(Build.SourcesDirectory)
cmake --build $(Build.SourcesDirectory)\build
displayName: Analyze by Clang
env:
CFLAGS: -m64 -fdiagnostics-absolute-paths
CXXFLAGS: -m64 -fdiagnostics-absolute-paths
PYTHONPATH: '$(Pipeline.Workspace)\ros2-windows\Lib\site-packages;$(PYTHONPATH)'
ROS_DISTRO: 'jazzy'
ROS_PYTHON_VERSION: '3'
ROS_VERSION: '2'
AMENT_PREFIX_PATH: '$(Pipeline.Workspace)\ros2-windows'
CMAKE_PREFIX_PATH: '$(Pipeline.Workspace)\ros2-windows'
PKG_CONFIG_PATH: '$(Pipeline.Workspace)\ros2-windows\lib\pkgconfig'
COLCON_PREFIX_PATH: '$(Pipeline.Workspace)\ros2-windows'