forked from sfreed141/vct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipeline-hosted.yml
105 lines (99 loc) · 3.8 KB
/
azure-pipeline-hosted.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
variables:
vcpkgLocation: $(Build.SourcesDirectory)/submodules/vcpkg/
vcpkgCommitId: $(Build.SourcesDirectory)/.git/modules/submodules/vcpkg/HEAD
system.debug: true
pr:
- master
jobs:
- job: macos_hosted
pool:
vmImage: 'macOS-10.14'
steps:
- checkout: self
submodules: recursive
- task: Bash@3
inputs:
targetType: 'inline'
script: 'brew install gcc'
- task: CacheBeta@0
displayName: Cache vcpkg artifacts
inputs:
key: $(Build.SourcesDirectory)/vcpkg_x64-osx.txt | $(vcpkgCommitId) | "$(Agent.OS)"
path: '$(vcpkgLocation)'
- task: lucappa.cmake-ninja-vcpkg-tasks.d855c326-b1c0-4d6f-b1c7-440ade6835fb.run-vcpkg@0
displayName: 'Run vcpkg'
inputs:
vcpkgArguments: '@$(Build.SourcesDirectory)/vcpkg_x64-osx.txt'
vcpkgDirectory: $(vcpkgLocation)
- task: lucappa.cmake-ninja-vcpkg-tasks.f2b1ec7d-bc54-4cc8-b9ed-1bc7f37c9dc6.run-cmake@0
displayName: 'Run CMake and Ninja - Basic'
inputs:
cmakeListsTxtPath: CMakeLists.txt
useVcpkgToolchainFile: true
cmakeBuildType: Release
- task: lucappa.cmake-ninja-vcpkg-tasks.f2b1ec7d-bc54-4cc8-b9ed-1bc7f37c9dc6.run-cmake@0
displayName: 'Run CMake with CMakeSettings.json'
inputs:
cmakeListsOrSettingsJson: CMakeSettingsJson
useVcpkgToolchainFile: true
configurationRegexFilter: 'Unix-Release'
- job: ubuntu_hosted
pool:
name: Hosted Ubuntu 1604
steps:
- checkout: self
submodules: recursive
- bash: |
sudo apt-get update
sudo apt install libxinerama-dev libxcursor-dev libx11-dev xorg-dev libglu1-mesa-dev
displayName: 'Bash Script'
- task: CacheBeta@0
displayName: Cache vcpkg artifacts
inputs:
key: $(Build.SourcesDirectory)/vcpkg_x64-linux.txt | $(vcpkgCommitId) | "$(Agent.OS)"
path: '$(vcpkgLocation)'
- task: lucappa.cmake-ninja-vcpkg-tasks.d855c326-b1c0-4d6f-b1c7-440ade6835fb.run-vcpkg@0
displayName: 'Run vcpkg'
inputs:
vcpkgArguments: '@$(Build.SourcesDirectory)/vcpkg_x64-linux.txt'
vcpkgDirectory: $(vcpkgLocation)
- task: lucappa.cmake-ninja-vcpkg-tasks.f2b1ec7d-bc54-4cc8-b9ed-1bc7f37c9dc6.run-cmake@0
displayName: 'Run CMake and Ninja - Basic'
inputs:
cmakeListsTxtPath: CMakeLists.txt
useVcpkgToolchainFile: true
cmakeBuildType: Release
- task: lucappa.cmake-ninja-vcpkg-tasks.f2b1ec7d-bc54-4cc8-b9ed-1bc7f37c9dc6.run-cmake@0
displayName: 'Run CMake with CMakeSettings.json'
inputs:
cmakeListsOrSettingsJson: CMakeSettingsJson
useVcpkgToolchainFile: true
configurationRegexFilter: 'Unix-Release'
- job: vs2019_hosted
pool:
name: Hosted Windows 2019 with VS2019
steps:
- checkout: self
submodules: recursive
- task: CacheBeta@0
displayName: Cache vcpkg artifacts
inputs:
key: $(Build.SourcesDirectory)/vcpkg_x64-vs2019.txt | $(vcpkgCommitId) | "$(Agent.OS)"
path: '$(vcpkgLocation)'
- task: lucappa.cmake-ninja-vcpkg-tasks.d855c326-b1c0-4d6f-b1c7-440ade6835fb.run-vcpkg@0
displayName: 'Run vcpkg'
inputs:
vcpkgArguments: '@$(Build.SourcesDirectory)/vcpkg_x64-vs2019.txt'
vcpkgDirectory: $(vcpkgLocation)
- task: lucappa.cmake-ninja-vcpkg-tasks.f2b1ec7d-bc54-4cc8-b9ed-1bc7f37c9dc6.run-cmake@0
displayName: 'Run CMake with CMakeSettings.json'
inputs:
cmakeListsOrSettingsJson: CMakeSettingsJson
useVcpkgToolchainFile: true
configurationRegexFilter: 'x64-Release'
- task: lucappa.cmake-ninja-vcpkg-tasks.f2b1ec7d-bc54-4cc8-b9ed-1bc7f37c9dc6.run-cmake@0
displayName: 'Run CMake and Ninja - Basic'
inputs:
cmakeListsTxtPath: CMakeLists.txt
useVcpkgToolchainFile: true
cmakeBuildType: Release