build-msvc.yml 1.0 KB

123456789101112131415161718192021222324252627
  1. parameters:
  2. artifactSource: 'true'
  3. cache: 'false'
  4. version: ''
  5. steps:
  6. - script: choco install vulkan-sdk
  7. displayName: 'Install vulkan-sdk'
  8. - script: python -m pip install --upgrade pip conan
  9. displayName: 'Install conan'
  10. - script: refreshenv && mkdir build && cd build && cmake -G "Visual Studio 16 2019" -A x64 --config Release -DYUZU_USE_BUNDLED_QT=1 -DYUZU_USE_BUNDLED_UNICORN=1 -DYUZU_USE_QT_WEB_ENGINE=ON -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${COMPAT} -DUSE_DISCORD_PRESENCE=ON -DDISPLAY_VERSION=${{ parameters['version'] }} .. && cd ..
  11. displayName: 'Configure CMake'
  12. - task: MSBuild@1
  13. displayName: 'Build'
  14. inputs:
  15. solution: 'build/yuzu.sln'
  16. maximumCpuCount: true
  17. configuration: release
  18. - task: PowerShell@2
  19. displayName: 'Package Artifacts'
  20. inputs:
  21. targetType: 'filePath'
  22. filePath: './.ci/scripts/windows/upload.ps1'
  23. arguments: '$(BuildName)'
  24. - publish: artifacts
  25. artifact: 'yuzu-$(BuildName)-windows-msvc'
  26. displayName: 'Upload Artifacts'