azure-pipelines.yml 2.7 KB

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