-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
77 lines (68 loc) · 2.33 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
# Docs see here:
# https://aka.ms/yaml
# adapted from, and delete vcpkg and deployment sections
# https://github.com/open62541/open62541/blob/master/tools/azure-devops/win/build.ps1
jobs:
- job: 'win_vs2017'
displayName: 'Windows (VS2017)'
pool:
vmImage: 'vs2017-win2016'
variables:
CC_NAME: Visual Studio 15 2017
CC_SHORTNAME: VS2017
CMAKE_GENERATOR: Visual Studio 15 2017
FORCE_CXX: ON
steps:
- checkout: self
submodules: recursive
#- powershell:
# displayName: Install Requirements
- powershell: mkdir build ; cd build ; cmake .. -G "$env:CMAKE_GENERATOR" -DCMAKE_CXX_STANDARD=14 ; cmake --build .
#- bash: scripts/build.sh
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
CMAKE_GENERATOR: MinGW Makefiles
FORCE_CXX: ON
MSYS2_ROOT: C:/msys64
steps:
- checkout: self
submodules: recursive
#- powershell: ./tools/azure-devops/win/install.ps1
# displayName: Install Requirements
# alias mingw32-make into make may not exists, but `cmake --build .` is portable
- bash: mkdir build && cd build && cmake .. -G "${CMAKE_GENERATOR}" && cmake --build . && bash ../scripts/run_all_tests.sh
displayName: "Build: $(CC_NAME)"
#env: CMAKE_GENERATOR # ampping env variable is not necessary
- job: 'win_clang'
displayName: 'Windows (clang)'
pool:
vmImage: 'windows-latest'
variables:
CC_NAME: Clang
CC_SHORTNAME: clang-mingw
#CC: "clang --target=x86_64-w64-mingw32"
#CXX: "clang++ --target=x86_64-w64-mingw32"
CMAKE_GENERATOR: MinGW Makefiles
FORCE_CXX: ON
MSYS2_ROOT: C:/msys64
steps:
- checkout: self
submodules: recursive
#- powershell: ./tools/azure-devops/win/install.ps1
# displayName: Install Requirements
- bash: mkdir build && cd build && cmake .. -G "${CMAKE_GENERATOR}" -DCMAKE_CXX_STANDARD=17 && cmake --build .
displayName: "Build: $(CC_NAME)"
#env: CMAKE_GENERATOR