azure-pipelines.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # Docs see here:
  2. # https://aka.ms/yaml
  3. variables:
  4. choco_cache: C:/ProgramData/chocolatey
  5. vcpkg_cache: C:/vcpkg/installed
  6. jobs:
  7. - job: 'win_vs2017'
  8. displayName: 'Windows (VS2017)'
  9. pool:
  10. vmImage: 'vs2017-win2016'
  11. variables:
  12. CC_NAME: Visual Studio 15 2017
  13. CC_SHORTNAME: VS2017
  14. GENERATOR: Visual Studio 15 2017
  15. FORCE_CXX: OFF
  16. steps:
  17. - checkout: self
  18. submodules: recursive
  19. - task: CacheBeta@0
  20. inputs:
  21. key: $(Build.SourcesDirectory)/tools/azure-devops/install.ps1
  22. path: $(choco_cache)
  23. displayName: Cache Choco
  24. - task: CacheBeta@0
  25. inputs:
  26. key: $(Build.SourcesDirectory)/tools/azure-devops/install.ps1
  27. path: $(vcpkg_cache)
  28. displayName: Cache vcpkg
  29. - powershell: ./tools/azure-devops/install.ps1
  30. displayName: Install Requirements
  31. - powershell: ./tools/azure-devops/build.ps1
  32. displayName: "Build: $(CC_NAME)"
  33. - task: PublishBuildArtifacts@1
  34. inputs:
  35. PathtoPublish: '$(Build.ArtifactStagingDirectory)'
  36. ArtifactName: open62541-$(CC_SHORTNAME)
  37. # publishing artifacts from PRs from a fork is currently blocked
  38. condition: succeeded()
  39. displayName: "Publish Artifact: open62541-$(CC_SHORTNAME)"
  40. - job: 'win_msys64'
  41. displayName: 'Windows (msys64)'
  42. pool:
  43. vmImage: 'windows-latest'
  44. variables:
  45. CC_NAME: MinGW Makefiles
  46. CC_SHORTNAME: mingw
  47. GENERATOR: MinGW Makefiles
  48. FORCE_CXX: OFF
  49. MSYS2_ROOT: C:/msys64
  50. steps:
  51. - checkout: self
  52. submodules: recursive
  53. - task: CacheBeta@0
  54. inputs:
  55. key: $(Build.SourcesDirectory)/tools/azure-devops/install.ps1
  56. path: $(choco_cache)
  57. displayName: Cache Choco
  58. - powershell: ./tools/azure-devops/install.ps1
  59. displayName: Install Requirements
  60. - powershell: ./tools/azure-devops/build.ps1
  61. displayName: "Build: $(CC_NAME)"
  62. errorActionPreference: continue # Nodeset Compiler prints to stderror
  63. - task: PublishBuildArtifacts@1
  64. inputs:
  65. PathtoPublish: '$(Build.ArtifactStagingDirectory)'
  66. ArtifactName: open62541-$(CC_SHORTNAME)
  67. # publishing artifacts from PRs from a fork is currently blocked
  68. condition: succeeded()
  69. displayName: "Publish Artifact: open62541-$(CC_SHORTNAME)"
  70. - job: 'win_clang'
  71. displayName: 'Windows (clang)'
  72. pool:
  73. vmImage: 'windows-latest'
  74. variables:
  75. CC_NAME: Clang
  76. CC_SHORTNAME: clang-mingw
  77. GENERATOR: MinGW Makefiles
  78. FORCE_CXX: OFF
  79. MSYS2_ROOT: C:/msys64
  80. steps:
  81. - checkout: self
  82. submodules: recursive
  83. - task: CacheBeta@0
  84. inputs:
  85. key: $(Build.SourcesDirectory)/tools/azure-devops/install.ps1
  86. path: $(choco_cache)
  87. displayName: Cache Choco
  88. - powershell: ./tools/azure-devops/install.ps1
  89. displayName: Install Requirements
  90. - powershell: ./tools/azure-devops/build.ps1
  91. displayName: "Build: $(CC_NAME)"
  92. errorActionPreference: continue # Nodeset Compiler prints to stderror
  93. - task: PublishBuildArtifacts@1
  94. inputs:
  95. PathtoPublish: '$(Build.ArtifactStagingDirectory)'
  96. ArtifactName: open62541-$(CC_SHORTNAME)
  97. # publishing artifacts from PRs from a fork is currently blocked
  98. condition: succeeded()
  99. displayName: "Publish Artifact: open62541-$(CC_SHORTNAME)"