azure-pipelines-win.yml 2.8 KB

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