2019-09-05 00:26:26 +08:00
|
|
|
parameters:
|
|
|
|
additionalBuildArguments: ''
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
2020-05-15 02:57:58 +08:00
|
|
|
fetchDepth: 1
|
2019-09-05 00:26:26 +08:00
|
|
|
submodules: true
|
|
|
|
clean: true
|
|
|
|
|
2022-11-25 03:45:51 +08:00
|
|
|
- task: PowerShell@2
|
2023-10-09 22:58:13 +08:00
|
|
|
displayName: Verify XAML formatting
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\applyXamlStyling.ps1'
|
|
|
|
arguments: -Passive
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Nuget package versions for PowerToys.sln
|
2022-11-25 03:45:51 +08:00
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyNugetPackages.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\PowerToys.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
2022-08-17 23:35:45 +08:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Arm64 configuration for PowerToys.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyArm64Configuration.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\PowerToys.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Arm64 configuration for BugReportTool.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyArm64Configuration.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\tools\BugReportTool\BugReportTool.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Arm64 configuration for WebcamReportTool.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyArm64Configuration.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\tools\WebcamReportTool\WebcamReportTool.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Arm64 configuration for StylesReportTool.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyArm64Configuration.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\tools\StylesReportTool\StylesReportTool.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Verify Arm64 configuration for PowerToysSetup.sln
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyArm64Configuration.ps1'
|
|
|
|
arguments: -solution '$(build.sourcesdirectory)\installer\PowerToysSetup.sln'
|
|
|
|
pwsh: true
|
|
|
|
|
2022-02-07 22:08:30 +08:00
|
|
|
- task: UseDotNet@2
|
2022-12-01 22:40:41 +08:00
|
|
|
displayName: 'Use .NET 7 SDK'
|
2022-02-07 22:08:30 +08:00
|
|
|
inputs:
|
|
|
|
packageType: sdk
|
2022-12-01 22:40:41 +08:00
|
|
|
version: '7.x'
|
2022-02-07 22:08:30 +08:00
|
|
|
|
2019-09-05 00:26:26 +08:00
|
|
|
- task: VisualStudioTestPlatformInstaller@1
|
|
|
|
displayName: Ensure VSTest Platform
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
2020-08-06 21:12:20 +08:00
|
|
|
displayName: 'Build PowerToys.sln'
|
2019-09-05 00:26:26 +08:00
|
|
|
inputs:
|
|
|
|
solution: '**\PowerToys.sln'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2019-09-05 00:26:26 +08:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2023-08-17 00:31:10 +08:00
|
|
|
msbuildArgs: -restore ${{ parameters.additionalBuildArguments }}
|
2022-11-15 02:38:25 +08:00
|
|
|
maximumCpuCount: true
|
2020-04-03 23:12:12 +08:00
|
|
|
|
2020-12-22 18:27:28 +08:00
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build BugReportTool.sln'
|
|
|
|
inputs:
|
|
|
|
solution: '**\BugReportTool.sln'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2020-12-22 18:27:28 +08:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2023-08-17 00:31:10 +08:00
|
|
|
msbuildArgs: -restore ${{ parameters.additionalBuildArguments }}
|
2021-03-30 23:27:42 +08:00
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build WebcamReportTool.sln'
|
|
|
|
inputs:
|
|
|
|
solution: '**\WebcamReportTool.sln'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2021-03-30 23:27:42 +08:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2023-08-17 00:31:10 +08:00
|
|
|
msbuildArgs: -restore ${{ parameters.additionalBuildArguments }}
|
2020-12-22 18:27:28 +08:00
|
|
|
maximumCpuCount: true
|
|
|
|
|
2022-04-28 04:21:00 +08:00
|
|
|
- task: VSBuild@1
|
2022-04-28 19:20:05 +08:00
|
|
|
displayName: 'Build StylesReportTool.sln'
|
2022-04-28 04:21:00 +08:00
|
|
|
inputs:
|
2022-04-28 19:20:05 +08:00
|
|
|
solution: '**\StylesReportTool.sln'
|
2022-04-28 04:21:00 +08:00
|
|
|
vsVersion: 17.0
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2023-08-17 00:31:10 +08:00
|
|
|
msbuildArgs: -restore ${{ parameters.additionalBuildArguments }}
|
2022-04-28 04:21:00 +08:00
|
|
|
maximumCpuCount: true
|
|
|
|
|
2023-01-09 20:27:57 +08:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Download and install WiX 3.14 development build
|
|
|
|
inputs:
|
|
|
|
targetType: filePath
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\installWiX.ps1'
|
|
|
|
|
2020-08-06 21:12:20 +08:00
|
|
|
- task: VSBuild@1
|
2023-03-31 18:23:57 +08:00
|
|
|
displayName: 'Build PowerToys per-machine MSI'
|
2020-08-06 21:12:20 +08:00
|
|
|
inputs:
|
|
|
|
solution: '**\installer\PowerToysSetup.sln'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2020-08-06 21:12:20 +08:00
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2023-08-17 00:31:10 +08:00
|
|
|
msbuildArgs: /t:PowerToysInstaller -restore ${{ parameters.additionalBuildArguments }}
|
2022-04-05 16:58:03 +08:00
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
2023-03-31 18:23:57 +08:00
|
|
|
displayName: 'Build PowerToys per-machine Bootstrapper'
|
2022-04-05 16:58:03 +08:00
|
|
|
inputs:
|
|
|
|
solution: '**\installer\PowerToysSetup.sln'
|
|
|
|
vsVersion: 17.0
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
msbuildArgs: /t:PowerToysBootstrapper ${{ parameters.additionalBuildArguments }}
|
|
|
|
clean: false
|
2020-08-06 21:12:20 +08:00
|
|
|
maximumCpuCount: true
|
|
|
|
|
2023-03-31 18:23:57 +08:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Clean installer dir before building per-user installer
|
|
|
|
inputs:
|
|
|
|
targetType: inline
|
|
|
|
script: git clean -xfd -e *exe -- .\installer\
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build PowerToys per-user MSI'
|
|
|
|
inputs:
|
|
|
|
solution: '**\installer\PowerToysSetup.sln'
|
|
|
|
vsVersion: 17.0
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
2023-08-17 00:31:10 +08:00
|
|
|
msbuildArgs: /t:PowerToysInstaller -restore ${{ parameters.additionalBuildArguments }} /p:PerUser=true
|
2023-03-31 18:23:57 +08:00
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Build PowerToys per-user Bootstrapper'
|
|
|
|
inputs:
|
|
|
|
solution: '**\installer\PowerToysSetup.sln'
|
|
|
|
vsVersion: 17.0
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
msbuildArgs: /t:PowerToysBootstrapper ${{ parameters.additionalBuildArguments }} /p:PerUser=true
|
|
|
|
clean: false
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
2023-07-20 07:12:46 +08:00
|
|
|
# Check if deps.json files don't reference different dll versions.
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Audit deps.json files for all applications
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyDepsJsonLibraryVersions.ps1'
|
|
|
|
arguments: -targetDir '$(build.sourcesdirectory)\$(BuildPlatform)\$(BuildConfiguration)'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
# Check if asset files on the main application paths are playing nice and avoiding basic conflicts.
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Audit base applications path asset conflicts
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyPossibleAssetConflicts.ps1'
|
|
|
|
arguments: -targetDir '$(build.sourcesdirectory)\$(BuildPlatform)\$(BuildConfiguration)'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Audit WinAppSDK applications path asset conflicts
|
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyPossibleAssetConflicts.ps1'
|
|
|
|
arguments: -targetDir '$(build.sourcesdirectory)\$(BuildPlatform)\$(BuildConfiguration)\WinUI3Apps'
|
|
|
|
pwsh: true
|
|
|
|
|
2020-08-19 04:19:35 +08:00
|
|
|
# directly not doing WinAppDriver testing
|
2020-04-03 23:12:12 +08:00
|
|
|
- task: VSTest@2
|
2021-03-16 23:29:20 +08:00
|
|
|
displayName: 'MS Tests'
|
2022-05-19 21:02:08 +08:00
|
|
|
condition: ne(variables['BuildPlatform'], 'arm64') # No arm64 agents to run the tests.
|
2020-04-03 23:12:12 +08:00
|
|
|
inputs:
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
testAssemblyVer2: |
|
2021-12-10 19:53:01 +08:00
|
|
|
**\UnitTests-GcodeThumbnailProvider.dll
|
2022-01-25 19:51:37 +08:00
|
|
|
**\UnitTests-StlThumbnailProvider.dll
|
2021-09-17 01:02:50 +08:00
|
|
|
**\UnitTests-PdfThumbnailProvider.dll
|
2023-11-14 23:41:09 +08:00
|
|
|
**\UnitTests-QoiThumbnailProvider.dll
|
2021-12-15 19:56:52 +08:00
|
|
|
**\Settings.UI.UnitTests.dll
|
2021-12-10 19:53:01 +08:00
|
|
|
**\UnitTests-GcodePreviewHandler.dll
|
2023-11-14 23:41:09 +08:00
|
|
|
**\UnitTests-QoiPreviewHandler.dll
|
2023-10-18 15:07:48 +08:00
|
|
|
**\UnitTests-FancyZonesEditor.dll
|
2021-08-27 05:43:26 +08:00
|
|
|
**\UnitTests-PdfPreviewHandler.dll
|
2021-03-16 23:29:20 +08:00
|
|
|
**\UnitTests-PreviewHandlerCommon.dll
|
|
|
|
**\Microsoft.PowerToys.Run.Plugin.Registry.UnitTests.dll
|
2020-10-23 10:26:48 +08:00
|
|
|
**\UnitTest-ColorPickerUI.dll
|
2020-12-10 15:11:14 +08:00
|
|
|
**\Microsoft.Interop.Tests.dll
|
2021-01-04 22:25:41 +08:00
|
|
|
**\ImageResizer.Test.dll
|
2021-06-09 17:46:19 +08:00
|
|
|
**\Community.PowerToys.Run.Plugin.UnitConverter.UnitTest.dll
|
2023-07-18 17:44:02 +08:00
|
|
|
**\Community.PowerToys.Run.Plugin.ValueGenerator.UnitTests.dll
|
2021-03-16 23:29:20 +08:00
|
|
|
**\Microsoft.Plugin.Folder.UnitTests.dll
|
|
|
|
**\Microsoft.Plugin.Program.UnitTests.dll
|
|
|
|
**\Microsoft.PowerToys.Run.Plugin.Calculator.UnitTest.dll
|
|
|
|
**\Microsoft.Plugin.Uri.UnitTests.dll
|
|
|
|
**\Wox.Test.dll
|
2022-03-18 03:33:05 +08:00
|
|
|
**\Microsoft.PowerToys.Run.Plugin.System.UnitTests.dll
|
2022-06-28 21:30:03 +08:00
|
|
|
**\Microsoft.PowerToys.Run.Plugin.TimeDate.UnitTests.dll
|
2022-02-07 22:08:30 +08:00
|
|
|
**\Microsoft.Plugin.WindowsTerminal.UnitTests.dll
|
2022-03-07 19:45:29 +08:00
|
|
|
**\Microsoft.Plugin.WindowWalker.UnitTests.dll
|
2022-09-21 23:59:53 +08:00
|
|
|
**\PreviewPaneUnitTests.dll
|
|
|
|
**\UnitTests-SvgThumbnailProvider.dll
|
|
|
|
**\UnitTests-SvgPreviewHandler.dll
|
2022-10-21 13:55:21 +08:00
|
|
|
**\PowerToys.Hosts.Tests.dll
|
2023-02-24 21:30:30 +08:00
|
|
|
**\MouseJumpUI.UnitTests.dll
|
2021-03-16 23:29:20 +08:00
|
|
|
!**\obj\**
|
2022-01-18 22:52:22 +08:00
|
|
|
!**\ref\**
|
2021-03-16 23:29:20 +08:00
|
|
|
|
2021-01-04 22:25:41 +08:00
|
|
|
# Native dlls
|
|
|
|
- task: VSTest@2
|
2022-05-19 21:02:08 +08:00
|
|
|
condition: ne(variables['BuildPlatform'],'arm64') # No arm64 agents to run the tests.
|
2021-03-16 23:29:20 +08:00
|
|
|
displayName: 'Native Tests'
|
2021-01-04 22:25:41 +08:00
|
|
|
inputs:
|
|
|
|
platform: '$(BuildPlatform)'
|
|
|
|
configuration: '$(BuildConfiguration)'
|
|
|
|
testSelector: 'testAssemblies'
|
|
|
|
testAssemblyVer2: |
|
2021-04-27 03:01:38 +08:00
|
|
|
**\KeyboardManagerEngineTest.dll
|
|
|
|
**\KeyboardManagerEditorTest.dll
|
2021-01-04 22:25:41 +08:00
|
|
|
**\UnitTests-CommonLib.dll
|
2020-12-14 20:10:10 +08:00
|
|
|
**\PowerRenameUnitTests.dll
|
2021-03-16 23:29:20 +08:00
|
|
|
**\powerpreviewTest.dll
|
2022-08-15 21:40:10 +08:00
|
|
|
**\UnitTests-FancyZones.dll
|
2020-08-14 04:51:01 +08:00
|
|
|
!**\obj\**
|
2023-02-15 10:38:53 +08:00
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Trigger dotnet welcome message so that it does not cause errors on other scripts
|
|
|
|
inputs:
|
|
|
|
targetType: 'inline'
|
|
|
|
script: |
|
|
|
|
dotnet list $(build.sourcesdirectory)\src\common\Common.UI\Common.UI.csproj package
|
|
|
|
|
2023-01-09 20:27:57 +08:00
|
|
|
- task: PowerShell@2
|
2023-10-09 22:58:13 +08:00
|
|
|
displayName: Verify Notice.md and Nuget packages match
|
2023-01-09 20:27:57 +08:00
|
|
|
inputs:
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\verifyNoticeMdAgainstNugetPackages.ps1'
|
|
|
|
arguments: -path '$(build.sourcesdirectory)\'
|
2023-02-15 10:38:53 +08:00
|
|
|
pwsh: true
|