forked from open62541/open62541
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
99 lines (83 loc) · 2.78 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
# Docs see here:
# https://aka.ms/yaml
variables:
vcpkg_cache: C:/vcpkg/installed
jobs:
- job: 'win_vs2017'
displayName: 'Windows (VS2017)'
pool:
vmImage: 'vs2017-win2016'
variables:
CC_NAME: Visual Studio 15 2017
CC_SHORTNAME: VS2017
GENERATOR: Visual Studio 15 2017
FORCE_CXX: OFF
steps:
- checkout: self
submodules: recursive
- task: CacheBeta@0
inputs:
key: $(Build.SourcesDirectory)/tools/azure-devops/install.ps1
path: $(vcpkg_cache)
displayName: Cache vcpkg
- powershell: ./tools/azure-devops/install.ps1
displayName: Install Requirements
- powershell: ./tools/azure-devops/build.ps1
displayName: "Build: $(CC_NAME)"
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: open62541-$(CC_SHORTNAME)
# publishing artifacts from PRs from a fork is currently blocked
condition: succeeded()
displayName: "Publish Artifact: open62541-$(CC_SHORTNAME)"
- job: 'win_msys64'
displayName: 'Windows (msys64)'
pool:
vmImage: 'windows-latest'
variables:
CC_NAME: MinGW Makefiles
CC_SHORTNAME: mingw
GENERATOR: MinGW Makefiles
FORCE_CXX: OFF
MSYS2_ROOT: C:/msys64
steps:
- checkout: self
submodules: recursive
- powershell: ./tools/azure-devops/install.ps1
displayName: Install Requirements
- powershell: ./tools/azure-devops/build.ps1
displayName: "Build: $(CC_NAME)"
errorActionPreference: continue # If set to Stop, we only get a truncated exception message. Error is handled by checking exit code
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: open62541-$(CC_SHORTNAME)
# publishing artifacts from PRs from a fork is currently blocked
condition: succeeded()
displayName: "Publish Artifact: open62541-$(CC_SHORTNAME)"
- job: 'win_clang'
displayName: 'Windows (clang)'
pool:
vmImage: 'windows-latest'
variables:
CC_NAME: Clang
CC_SHORTNAME: clang-mingw
GENERATOR: MinGW Makefiles
FORCE_CXX: OFF
MSYS2_ROOT: C:/msys64
steps:
- checkout: self
submodules: recursive
- powershell: ./tools/azure-devops/install.ps1
displayName: Install Requirements
- powershell: ./tools/azure-devops/build.ps1
displayName: "Build: $(CC_NAME)"
errorActionPreference: continue # If set to Stop, we only get a truncated exception message. Error is handled by checking exit code
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: open62541-$(CC_SHORTNAME)
# publishing artifacts from PRs from a fork is currently blocked
condition: succeeded()
displayName: "Publish Artifact: open62541-$(CC_SHORTNAME)"