forked from dartsim/dart
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.azure-pipelines.yml
159 lines (148 loc) · 4.08 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# Azure Pipeline settings
# Ref: https://docs.microsoft.com/en-us/azure/devops/pipelines
jobs:
- job: xenial_gcc_release
pool:
vmImage: 'ubuntu-16.04'
variables:
OS_NAME: linux
COMPILER: gcc
BUILD_TYPE: Release
BUILD_DIR: $(Build.SourcesDirectory)
DOCKERFILE: Dockerfile.ubuntu-xenial
steps:
- template: .ci/azure-pipelines/docker.yml
- job: bionic_gcc_debug
pool:
vmImage: 'ubuntu-16.04'
variables:
OS_NAME: linux
COMPILER: gcc
BUILD_TYPE: Debug
BUILD_DIR: $(Build.SourcesDirectory)
DOCKERFILE: Dockerfile.ubuntu-bionic
steps:
- template: .ci/azure-pipelines/docker.yml
- job: bionic_gcc_dartpy_release
pool:
vmImage: 'ubuntu-16.04'
variables:
OS_NAME: linux
COMPILER: gcc
BUILD_TYPE: Release
BUILD_DARTPY: ON
BUILD_DIR: $(Build.SourcesDirectory)
DOCKERFILE: Dockerfile.ubuntu-bionic
steps:
- template: .ci/azure-pipelines/docker.yml
timeoutInMinutes: 0
- job: disco_gcc_debug
pool:
vmImage: 'ubuntu-16.04'
variables:
OS_NAME: linux
COMPILER: gcc
BUILD_TYPE: Debug
BUILD_DIR: $(Build.SourcesDirectory)
DOCKERFILE: Dockerfile.ubuntu-disco
steps:
- template: .ci/azure-pipelines/docker.yml
- job: disco_gcc_dartpy_release
pool:
vmImage: 'ubuntu-16.04'
variables:
OS_NAME: linux
COMPILER: gcc
BUILD_TYPE: Release
BUILD_DARTPY: ON
BUILD_DIR: $(Build.SourcesDirectory)
DOCKERFILE: Dockerfile.ubuntu-disco
steps:
- template: .ci/azure-pipelines/docker.yml
timeoutInMinutes: 0
- job: eoan_gcc_debug
pool:
vmImage: 'ubuntu-16.04'
variables:
OS_NAME: linux
COMPILER: gcc
BUILD_TYPE: Debug
BUILD_DIR: $(Build.SourcesDirectory)
DOCKERFILE: Dockerfile.ubuntu-eoan
steps:
- template: .ci/azure-pipelines/docker.yml
- job: eoan_gcc_dartpy_release
pool:
vmImage: 'ubuntu-16.04'
variables:
OS_NAME: linux
COMPILER: gcc
BUILD_TYPE: Release
BUILD_DARTPY: ON
BUILD_DIR: $(Build.SourcesDirectory)
DOCKERFILE: Dockerfile.ubuntu-eoan
steps:
- template: .ci/azure-pipelines/docker.yml
timeoutInMinutes: 0
- job: mojav_clang_debug
pool:
vmImage: 'macOS-10.14'
variables:
OS_NAME: osx
BUILD_TYPE: Debug
BUILD_DIR: $(Build.SourcesDirectory)
steps:
- script: |
'.ci/install.sh'
displayName: 'Install'
- script: |
'.ci/script.sh'
displayName: 'Script'
- job: mojav_clang_dartpy_release
pool:
vmImage: 'macOS-10.14'
variables:
OS_NAME: osx
BUILD_TYPE: Release
BUILD_DARTPY: ON
BUILD_DIR: $(Build.SourcesDirectory)
steps:
- script: |
'.ci/install.sh'
displayName: 'Install'
- script: |
'.ci/script.sh'
displayName: 'Script'
- job: windows_vs2019_x64
pool:
vmImage: 'windows-2019'
timeoutInMinutes: 0
strategy:
matrix:
# Debug64:
# CONFIGURATION: 'Debug'
Release64:
CONFIGURATION: 'Release'
variables:
VCPKG_INSTALL_ROOT: $(Build.SourcesDirectory)\vcpkg
VCPKG_ARCH: 'x64-windows'
VCPKG_PACKAGES: 'assimp boost-system boost-filesystem ccd eigen3 fcl'
BUILD_TOOLSET_VERSION: '142'
CMAKE_GENERATOR: 'Visual Studio 16 2019'
steps:
- script: |
git clone -q --depth 1 https://github.com/microsoft/vcpkg.git $(VCPKG_INSTALL_ROOT)
$(VCPKG_INSTALL_ROOT)\bootstrap-vcpkg.bat
displayName: 'Install vcpkg'
- script: |
$(VCPKG_INSTALL_ROOT)\vcpkg.exe install --recurse --triplet $(VCPKG_ARCH) $(VCPKG_PACKAGES)
$(VCPKG_INSTALL_ROOT)\vcpkg.exe integrate install
displayName: 'Install dependencies'
- script: |
cmake --version
mkdir build
cd build
cmake .. -G "$(CMAKE_GENERATOR)" -A x64 -DCMAKE_BUILD_TYPE=$(CONFIGURATION) -Wno-dev -T "v$(BUILD_TOOLSET_VERSION),host=x64" -DVCPKG_TARGET_TRIPLET=$(VCPKG_ARCH) -DCMAKE_TOOLCHAIN_FILE="$(VCPKG_INSTALL_ROOT)/scripts/buildsystems/vcpkg.cmake" -DCMAKE_INSTALL_PREFIX="$(Build.BinariesDirectory)/$(REPO_NAME)" -DDART_MSVC_DEFAULT_OPTIONS=ON
cmake --build . --target ALL_BUILD --config $(CONFIGURATION) -- /maxcpucount:4
displayName: 'Build'
workingDirectory: '$(Build.SourcesDirectory)'