windows-x86-release.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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: 'Any CPU'
  13. buildConfiguration: 'Release'
  14. steps:
  15. - task: NuGetToolInstaller@1
  16. - task: NuGetCommand@2
  17. inputs:
  18. restoreSolution: '$(solution)'
  19. - task: VSBuild@1
  20. inputs:
  21. solution: '$(solution)'
  22. platform: '$(buildPlatform)'
  23. configuration: '$(buildConfiguration)'
  24. - task: DotNetCoreCLI@2
  25. displayName: "Build release PixiEditor.UpdateInstaller"
  26. inputs:
  27. command: 'publish'
  28. publishWebProjects: false
  29. projects: '**/PixiEditor.UpdateInstaller.csproj'
  30. arguments: '-o "UpdateInstaller" -r "win-x86" --self-contained=false -p:PublishSingleFile=true -c Release'
  31. zipAfterPublish: false
  32. - task: PowerShell@2
  33. displayName: "Set tag version"
  34. inputs:
  35. filePath: 'assemblyVerReader.ps1'
  36. - task: DotNetCoreCLI@2
  37. displayName: "Build release PixiEditor x86 light"
  38. inputs:
  39. command: 'publish'
  40. publishWebProjects: false
  41. projects: '**/PixiEditor.csproj'
  42. arguments: '-o "Builds\PixiEditor-x86-light" --self-contained=false -r "win-x86" -c Release'
  43. zipAfterPublish: false
  44. - task: ArchiveFiles@2
  45. inputs:
  46. rootFolderOrFile: 'Builds\PixiEditor-x86-light'
  47. includeRootFolder: false
  48. archiveType: 'zip'
  49. archiveFile: 'PixiEditor.$(TagVersion).x86.zip'
  50. replaceExistingArchive: true
  51. - task: PublishPipelineArtifact@1
  52. displayName: "Publish zip artifact"
  53. inputs:
  54. targetPath: '$(System.DefaultWorkingDirectory)\PixiEditor.$(TagVersion).x86.zip'
  55. artifact: 'PixiEditor.$(TagVersion).x86.zip'
  56. publishLocation: 'pipeline'
  57. - task: CopyFiles@2
  58. displayName: "Copy updater to PixiEditor target dir"
  59. inputs:
  60. SourceFolder: 'UpdateInstaller'
  61. Contents: '**'
  62. TargetFolder: 'Builds/PixiEditor-x86-light/PixiEditor'
  63. flattenFolders: true
  64. - task: PowerShell@2
  65. displayName: "Compile installer"
  66. inputs:
  67. targetType: 'inline'
  68. script: '& "$env:userprofile\.nuget\packages\tools.innosetup\6.1.2\tools\ISCC.exe" Installer\installer-setup-x86-light.iss'
  69. - task: PublishPipelineArtifact@1
  70. displayName: "Publish artifact"
  71. inputs:
  72. targetPath: 'Installer/Assets/PixiEditor-x86-light/'
  73. artifact: 'PixiEditor-setup-x86.exe'
  74. publishLocation: 'pipeline'