mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 05:43:10 -07:00
fix yaml
This commit is contained in:
parent
377777429f
commit
b1df329d9e
6 changed files with 57 additions and 34 deletions
|
@ -31,8 +31,8 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
- output: pipelineArtifact
|
- output: pipelineArtifact
|
||||||
displayName: Publish drop artifact
|
displayName: Publish drop artifact
|
||||||
targetPath: $(Build.BinariesDirectory)
|
targetPath: $(Build.BinariesDirectory)\$(BuildConfiguration)\${{ parameters.platform }}
|
||||||
artifactName: drop
|
artifactName: drop-${{ parameters.platform }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
# this job also signs the bundle and creates StoreBroker packages.
|
# this job also signs the bundle and creates StoreBroker packages.
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
isOSSBuild: false
|
|
||||||
signBundle: false
|
signBundle: false
|
||||||
createStoreBrokerPackages: false
|
createStoreBrokerPackages: false
|
||||||
|
|
||||||
|
@ -22,15 +21,14 @@ jobs:
|
||||||
in(dependencies.BuildARM.result, 'Succeeded', 'SucceededWithIssues', 'Skipped'),
|
in(dependencies.BuildARM.result, 'Succeeded', 'SucceededWithIssues', 'Skipped'),
|
||||||
in(dependencies.BuildARM64.result, 'Succeeded', 'SucceededWithIssues', 'Skipped')
|
in(dependencies.BuildARM64.result, 'Succeeded', 'SucceededWithIssues', 'Skipped')
|
||||||
)
|
)
|
||||||
pool:
|
|
||||||
${{ if eq(parameters.isOSSBuild, true) }}:
|
|
||||||
name: EssentialExperiencesOpenSource-windows-2022
|
|
||||||
${{ if eq(parameters.isOSSBuild, false) }}:
|
|
||||||
name: EssentialExperiences-windows-2022
|
|
||||||
variables:
|
variables:
|
||||||
skipComponentGovernanceDetection: true
|
skipComponentGovernanceDetection: true
|
||||||
StoreBrokerMediaRootPath: $(TEMP)\SBMedia
|
StoreBrokerMediaRootPath: $(TEMP)\SBMedia
|
||||||
StoreBrokerPackagePath: $(Build.ArtifactStagingDirectory)\storeBrokerPayload
|
StoreBrokerPackagePath: $(Build.ArtifactStagingDirectory)\storeBrokerPayload
|
||||||
|
PackageX86: $[in(dependencies.Buildx86.result, 'Succeeded', 'SucceededWithIssues')]
|
||||||
|
PackageX64: $[in(dependencies.Buildx64.result, 'Succeeded', 'SucceededWithIssues')]
|
||||||
|
PackageARM: $[in(dependencies.BuildARM.result, 'Succeeded', 'SucceededWithIssues')]
|
||||||
|
PackageARM64: $[in(dependencies.BuildARM64.result, 'Succeeded', 'SucceededWithIssues')]
|
||||||
templateContext:
|
templateContext:
|
||||||
outputs:
|
outputs:
|
||||||
- ${{ if eq(parameters.signBundle, true) }}:
|
- ${{ if eq(parameters.signBundle, true) }}:
|
||||||
|
@ -53,12 +51,37 @@ jobs:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
fetchDepth: 1
|
fetchDepth: 1
|
||||||
|
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadPipelineArtifacts@2
|
||||||
displayName: Download all .msix artifacts
|
displayName: Download all .msix artifacts (x86)
|
||||||
|
condition: and(succeeded(), eq(variables.PackageX86, 'true'))
|
||||||
inputs:
|
inputs:
|
||||||
artifactName: drop
|
artifactName: drop-x86
|
||||||
itemPattern: '**/*.msix'
|
itemPattern: '**/*.msix'
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
targetPath: $(Build.ArtifactStagingDirectory)\drop\x86
|
||||||
|
|
||||||
|
- task: DownloadPipelineArtifacts@2
|
||||||
|
displayName: Download all .msix artifacts (x64)
|
||||||
|
condition: and(succeeded(), eq(variables.PackageX64, 'true'))
|
||||||
|
inputs:
|
||||||
|
artifactName: drop-x64
|
||||||
|
itemPattern: '**/*.msix'
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)\drop\x64
|
||||||
|
|
||||||
|
- task: DownloadPipelineArtifacts@2
|
||||||
|
displayName: Download all .msix artifacts (ARM)
|
||||||
|
condition: and(succeeded(), eq(variables.PackageARM, 'true'))
|
||||||
|
inputs:
|
||||||
|
artifactName: drop-ARM
|
||||||
|
itemPattern: '**/*.msix'
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)\drop\ARM
|
||||||
|
|
||||||
|
- task: DownloadPipelineArtifacts@2
|
||||||
|
displayName: Download all .msix artifacts (ARM64)
|
||||||
|
condition: and(succeeded(), eq(variables.PackageARM64, 'true'))
|
||||||
|
inputs:
|
||||||
|
artifactName: drop-ARM64
|
||||||
|
itemPattern: '**/*.msix'
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)\drop\ARM64
|
||||||
|
|
||||||
- ${{ if eq(parameters.createStoreBrokerPackages, true) }}:
|
- ${{ if eq(parameters.createStoreBrokerPackages, true) }}:
|
||||||
- task: UniversalPackages@0
|
- task: UniversalPackages@0
|
||||||
|
|
|
@ -13,10 +13,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout: none
|
- checkout: none
|
||||||
|
|
||||||
- task: DownloadBuildArtifacts@0
|
- download: current
|
||||||
displayName: Download storeBrokerPayload artifact
|
displayName: Download storeBrokerPayload artifact
|
||||||
inputs:
|
artifact: storeBrokerPayload
|
||||||
artifactName: storeBrokerPayload
|
|
||||||
|
|
||||||
- task: MS-RDX-MRO.windows-store-publish-dev.flight-task.store-flight@2
|
- task: MS-RDX-MRO.windows-store-publish-dev.flight-task.store-flight@2
|
||||||
displayName: Flight StoreBroker Payload to team ring
|
displayName: Flight StoreBroker Payload to team ring
|
||||||
|
|
|
@ -16,10 +16,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout: none
|
- checkout: none
|
||||||
|
|
||||||
- task: DownloadBuildArtifacts@0
|
- download: current
|
||||||
displayName: Download msixBundleSigned artifact
|
displayName: Download msixBundleSigned artifact
|
||||||
inputs:
|
artifact: msixBundleSigned
|
||||||
artifactName: msixBundleSigned
|
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: Copy signed MsixBundle to vpack staging folder
|
displayName: Copy signed MsixBundle to vpack staging folder
|
||||||
|
|
|
@ -17,6 +17,8 @@ jobs:
|
||||||
name: EssentialExperiences-Win11
|
name: EssentialExperiences-Win11
|
||||||
variables:
|
variables:
|
||||||
skipComponentGovernanceDetection: true
|
skipComponentGovernanceDetection: true
|
||||||
|
DropName: drop-${{ parameters.platform }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
fetchDepth: 1
|
fetchDepth: 1
|
||||||
|
@ -33,30 +35,29 @@ jobs:
|
||||||
width: 1920
|
width: 1920
|
||||||
height: 1080
|
height: 1080
|
||||||
|
|
||||||
- task: DownloadBuildArtifacts@0
|
- download: current
|
||||||
displayName: Download MsixBundle and CalculatorUITests
|
displayName: Download MsixBundle and CalculatorUITests
|
||||||
inputs:
|
artifact: $(DropName)
|
||||||
artifactName: drop
|
patterns: |
|
||||||
itemPattern: |
|
Calculator/AppPackages/**
|
||||||
drop/Release/${{ parameters.platform }}/Calculator/AppPackages/**
|
publish/**
|
||||||
drop/Release/${{ parameters.platform }}/publish/**
|
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Install certificate
|
displayName: Install certificate
|
||||||
inputs:
|
inputs:
|
||||||
filePath: $(Pipeline.Workspace)/drop/Release/${{ parameters.platform }}/Calculator/AppPackages/Calculator_$(Build.BuildNumber)_Test/Add-AppDevPackage.ps1
|
filePath: $(Pipeline.Workspace)/$(DropName)/Calculator/AppPackages/Calculator_$(Build.BuildNumber)_Test/Add-AppDevPackage.ps1
|
||||||
arguments: -CertificatePath $(Pipeline.Workspace)/drop/Release/${{ parameters.platform }}/Calculator/AppPackages/Calculator_$(Build.BuildNumber)_Test/Calculator_$(Build.BuildNumber)_${{ parameters.platform }}.cer -Force
|
arguments: -CertificatePath $(Pipeline.Workspace)/$(DropName)/Calculator/AppPackages/Calculator_$(Build.BuildNumber)_Test/Calculator_$(Build.BuildNumber)_${{ parameters.platform }}.cer -Force
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Install app
|
displayName: Install app
|
||||||
inputs:
|
inputs:
|
||||||
filePath: $(Pipeline.Workspace)/drop/Release/${{ parameters.platform }}/Calculator/AppPackages/Calculator_$(Build.BuildNumber)_Test/Add-AppDevPackage.ps1
|
filePath: $(Pipeline.Workspace)/$(DropName)/Calculator/AppPackages/Calculator_$(Build.BuildNumber)_Test/Add-AppDevPackage.ps1
|
||||||
arguments: -Force
|
arguments: -Force
|
||||||
|
|
||||||
- task: VSTest@2
|
- task: VSTest@2
|
||||||
displayName: Run CalculatorUITests
|
displayName: Run CalculatorUITests
|
||||||
inputs:
|
inputs:
|
||||||
testAssemblyVer2: $(Pipeline.Workspace)/drop/Release/${{ parameters.platform }}/publish/CalculatorUITests.dll
|
testAssemblyVer2: $(Pipeline.Workspace)/$(DropName)/publish/CalculatorUITests.dll
|
||||||
runSettingsFile: $(Pipeline.Workspace)/drop/Release/${{ parameters.platform }}/publish/${{ parameters.runsettingsFileName }}
|
runSettingsFile: $(Pipeline.Workspace)/$(DropName)/publish/${{ parameters.runsettingsFileName }}
|
||||||
platform: ${{ parameters.platform }}
|
platform: ${{ parameters.platform }}
|
||||||
configuration: Release
|
configuration: Release
|
||||||
|
|
|
@ -11,22 +11,23 @@ jobs:
|
||||||
condition: succeeded()
|
condition: succeeded()
|
||||||
variables:
|
variables:
|
||||||
skipComponentGovernanceDetection: true
|
skipComponentGovernanceDetection: true
|
||||||
|
UnitTestsDir: $(Pipeline.Workspace)\drop-${{ parameters.platform }}\CalculatorUnitTests\AppPackages\CalculatorUnitTests_Test
|
||||||
steps:
|
steps:
|
||||||
- checkout: none
|
- checkout: none
|
||||||
|
|
||||||
- download: current
|
- download: current
|
||||||
displayName: Download CalculatorUnitTests
|
displayName: Download CalculatorUnitTests
|
||||||
artifact: drop
|
artifact: drop-${{ parameters.platform }}
|
||||||
patterns: drop/Release/${{ parameters.platform }}/CalculatorUnitTests/AppPackages/CalculatorUnitTests_Test/**
|
patterns: '**/CalculatorUnitTests_Test/**'
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Install Certificate
|
displayName: Install Certificate
|
||||||
inputs:
|
inputs:
|
||||||
filePath: $(Pipeline.Workspace)\drop\Release\${{ parameters.platform }}\CalculatorUnitTests\AppPackages\CalculatorUnitTests_Test\Add-AppDevPackage.ps1
|
filePath: $(UnitTestsDir)\Add-AppDevPackage.ps1
|
||||||
arguments: -CertificatePath $(Pipeline.Workspace)\drop\Release\${{ parameters.platform }}\CalculatorUnitTests\AppPackages\CalculatorUnitTests_Test\CalculatorUnitTests.cer -Force
|
arguments: -CertificatePath $(UnitTestsDir)\CalculatorUnitTests.cer -Force
|
||||||
|
|
||||||
- task: VSTest@2
|
- task: VSTest@2
|
||||||
displayName: Run CalculatorUnitTests
|
displayName: Run CalculatorUnitTests
|
||||||
inputs:
|
inputs:
|
||||||
testAssemblyVer2: $(Pipeline.Workspace)\drop\Release\${{ parameters.platform }}\CalculatorUnitTests\AppPackages\CalculatorUnitTests_Test\CalculatorUnitTests.msix
|
testAssemblyVer2: $(UnitTestsDir)\CalculatorUnitTests.msix
|
||||||
otherConsoleOptions: /Platform:${{ parameters.platform }}
|
otherConsoleOptions: /Platform:${{ parameters.platform }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue