-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
117 lines (96 loc) · 4.11 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
jobs:
#============================================================================
# build-with-prebuilt
#============================================================================
# build-with-prebuilt-Windows
- job: BuildOnWindows
pool:
vmImage: "windows-2019"
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- checkout: self
displayName: "Checkout git submodules."
submodules: true
- task: UniversalPackages@0
displayName: 'Download LLVM pre-built library'
inputs:
command: 'download'
downloadDirectory: '$(System.DefaultWorkingDirectory)\llvmorg-11.1.0-prebuilt'
feedsToUse: 'internal'
vstsFeed: 'ba320e28-41cf-4d2a-978b-e402725ee2cb/63c926aa-419b-4b46-b5c8-440b0a16e0a0'
vstsFeedPackage: '33fc021f-3ef9-4286-8260-d9969af25fac'
vstsPackageVersion: '0.0.1'
verbosity: 'Information'
- script: |
mkdir "build-with-prebuilt\build"
cd "build-with-prebuilt\build"
cmake .. -DLLVM_INSTALL_DIR=$(System.DefaultWorkingDirectory)\llvmorg-11.1.0-prebuilt
cmake --build . --config Release
displayName: 'Build this project'
#----------------------------------------------------------------------------
# build-with-prebuilt-Linux
#----------------------------------------------------------------------------
- job: BuildOnLinux
pool:
vmImage: "ubuntu-20.04"
steps:
- checkout: self
displayName: "Checkout git submodules."
submodules: true
- task: UniversalPackages@0
displayName: 'Download LLVM pre-built library'
inputs:
command: 'download'
downloadDirectory: '$(System.DefaultWorkingDirectory)/llvmorg-11.1.0-prebuilt'
feedsToUse: 'internal'
vstsFeed: 'ba320e28-41cf-4d2a-978b-e402725ee2cb/901ceb81-0f0f-4a44-898b-880ad087d6ad'
vstsFeedPackage: 'c4e829d7-a0d4-4728-a5bb-b44bc6431fc0'
vstsPackageVersion: '0.0.1'
verbosity: 'Information'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: 'Get-ChildItem -Recurse $(System.DefaultWorkingDirectory)/llvmorg-11.1.0-prebuilt | Select-Object -ExpandProperty fullname'
- script: |
mkdir "build-with-prebuilt/build" -p
cd "build-with-prebuilt/build"
cmake .. -DLLVM_INSTALL_DIR=$(System.DefaultWorkingDirectory)/llvmorg-11.1.0-prebuilt
cmake --build . --config Release
displayName: 'Build this project'
#----------------------------------------------------------------------------
# build-with-prebuilt-macOS
#----------------------------------------------------------------------------
- job: BuildOnMacOS
pool:
vmImage: "macOS-10.15"
steps:
- checkout: self
displayName: "Checkout git submodules."
submodules: true
- task: UniversalPackages@0
displayName: 'Download LLVM pre-built library'
inputs:
command: 'download'
downloadDirectory: '$(System.DefaultWorkingDirectory)/llvmorg-11.1.0-prebuilt'
feedsToUse: 'internal'
vstsFeed: 'ba320e28-41cf-4d2a-978b-e402725ee2cb/901ceb81-0f0f-4a44-898b-880ad087d6ad'
vstsFeedPackage: 'c4e829d7-a0d4-4728-a5bb-b44bc6431fc0'
vstsPackageVersion: '0.0.1'
verbosity: 'Information'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: 'Get-ChildItem -Recurse $(System.DefaultWorkingDirectory)/llvmorg-11.1.0-prebuilt | Select-Object -ExpandProperty fullname'
- script: |
mkdir "build-with-prebuilt/build" -p
cd "build-with-prebuilt/build"
cmake .. -DLLVM_INSTALL_DIR=$(System.DefaultWorkingDirectory)/llvmorg-11.1.0-prebuilt
cmake --build . --config Release
displayName: 'Build this project'