windows-x86-release.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # .NET Desktop
  2. # Build and run tests for .NET Desktop or Windows classic desktop solutions.
  3. # Add steps that publish symbols, save build artifacts, and more:
  4. # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
  5. trigger:
  6. - release
  7. pr: none
  8. pool:
  9. vmImage: 'windows-latest'
  10. variables:
  11. solution: '**/*.sln'
  12. buildPlatform: 'x86'
  13. buildConfiguration: 'Release'
  14. steps:
  15. - task: UseDotNet@2
  16. inputs:
  17. packageType: 'sdk'
  18. version: '6.0.100'
  19. - task: NuGetToolInstaller@1
  20. - task: NuGetCommand@2
  21. inputs:
  22. restoreSolution: '$(solution)'
  23. - task: VSBuild@1
  24. inputs:
  25. solution: '$(solution)'
  26. platform: '$(buildPlatform)'
  27. configuration: '$(buildConfiguration)'
  28. - task: DotNetCoreCLI@2
  29. displayName: "Build release PixiEditor.UpdateInstaller"
  30. inputs:
  31. command: 'publish'
  32. publishWebProjects: false
  33. projects: '**/PixiEditor.UpdateInstaller.csproj'
  34. arguments: '-o "UpdateInstaller" -r "win-x86" --self-contained=false -p:PublishSingleFile=true -c Release'
  35. zipAfterPublish: false
  36. - task: PowerShell@2
  37. displayName: "Set tag version"
  38. inputs:
  39. filePath: 'assemblyVerReader.ps1'
  40. - task: DotNetCoreCLI@2
  41. displayName: "Build release PixiEditor x86 light"
  42. inputs:
  43. command: 'publish'
  44. publishWebProjects: false
  45. projects: '**/PixiEditor.csproj'
  46. arguments: '-o "Builds\PixiEditor-x86-light" --self-contained=false -r "win-x86" -c Release'
  47. zipAfterPublish: false
  48. - task: ArchiveFiles@2
  49. inputs:
  50. rootFolderOrFile: 'Builds\PixiEditor-x86-light'
  51. includeRootFolder: false
  52. archiveType: 'zip'
  53. archiveFile: 'PixiEditor.$(TagVersion).x86.zip'
  54. replaceExistingArchive: true
  55. - task: PublishPipelineArtifact@1
  56. displayName: "Publish zip artifact"
  57. inputs:
  58. targetPath: '$(System.DefaultWorkingDirectory)\PixiEditor.$(TagVersion).x86.zip'
  59. artifact: 'PixiEditor.$(TagVersion).x86.zip'
  60. publishLocation: 'pipeline'
  61. - task: CopyFiles@2
  62. displayName: "Copy updater to PixiEditor target dir"
  63. inputs:
  64. SourceFolder: 'UpdateInstaller'
  65. Contents: '**'
  66. TargetFolder: 'Builds/PixiEditor-x86-light/PixiEditor'
  67. flattenFolders: true
  68. - task: PowerShell@2
  69. displayName: "Compile installer"
  70. inputs:
  71. targetType: 'inline'
  72. script: '& "$env:userprofile\.nuget\packages\tools.innosetup\6.2.0\tools\ISCC.exe" Installer\installer-setup-x86-light.iss'
  73. - task: PublishPipelineArtifact@1
  74. displayName: "Publish artifact"
  75. inputs:
  76. targetPath: 'Installer/Assets/PixiEditor-x86-light/'
  77. artifact: 'PixiEditor-setup-x86.exe'
  78. publishLocation: 'pipeline'