yuzu-mainline-step2.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # SPDX-FileCopyrightText: 2019 yuzu Emulator Project
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. trigger:
  4. - master
  5. variables:
  6. DisplayVersion: $[counter(variables['DisplayPrefix'], 1)]
  7. stages:
  8. - stage: format
  9. displayName: 'format'
  10. jobs:
  11. - job: format
  12. displayName: 'clang'
  13. pool:
  14. vmImage: ubuntu-latest
  15. steps:
  16. - template: ./templates/format-check.yml
  17. - stage: build
  18. dependsOn: format
  19. displayName: 'build'
  20. jobs:
  21. - job: build
  22. timeoutInMinutes: 120
  23. displayName: 'standard'
  24. pool:
  25. vmImage: ubuntu-latest
  26. strategy:
  27. maxParallel: 10
  28. matrix:
  29. linux:
  30. BuildSuffix: 'linux'
  31. ScriptFolder: 'linux'
  32. steps:
  33. - template: ./templates/sync-source.yml
  34. parameters:
  35. artifactSource: $(parameters.artifactSource)
  36. needSubmodules: 'true'
  37. - template: ./templates/build-single.yml
  38. parameters:
  39. artifactSource: 'false'
  40. cache: 'true'
  41. version: $(DisplayVersion)
  42. - stage: build_win
  43. dependsOn: format
  44. displayName: 'build-windows'
  45. jobs:
  46. - job: build
  47. timeoutInMinutes: 120
  48. displayName: 'msvc'
  49. pool:
  50. vmImage: windows-2022
  51. steps:
  52. - template: ./templates/sync-source.yml
  53. parameters:
  54. artifactSource: $(parameters.artifactSource)
  55. needSubmodules: 'true'
  56. - template: ./templates/build-msvc.yml
  57. parameters:
  58. artifactSource: 'false'
  59. cache: 'true'
  60. version: $(DisplayVersion)
  61. - stage: release
  62. displayName: 'release'
  63. dependsOn:
  64. - build
  65. - build_win
  66. jobs:
  67. - job: github
  68. displayName: 'github'
  69. pool:
  70. vmImage: ubuntu-latest
  71. steps:
  72. - template: ./templates/release-github.yml