mirror of
https://github.com/microsoft/calculator.git
synced 2025-03-12 04:35:52 -07:00
88 lines
2.7 KiB
YAML
88 lines
2.7 KiB
YAML
#
|
|
# Release
|
|
# This pipeline builds a version of the app in a production configuration to be released to the
|
|
# Store and the Windows image. This pipeline relies on Microsoft-internal resources to run.
|
|
#
|
|
|
|
trigger: none
|
|
pr: none
|
|
|
|
variables:
|
|
versionMajor: 11
|
|
versionMinor: 2311
|
|
versionBuild: $[counter(format('{0}.{1}.*', variables['versionMajor'], variables['versionMinor']), 0)]
|
|
versionPatch: 0
|
|
|
|
name: '$(versionMajor).$(versionMinor).$(versionBuild).$(versionPatch)'
|
|
|
|
resources:
|
|
repositories:
|
|
- repository: 1esPipelines
|
|
type: git
|
|
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
|
ref: refs/tags/release
|
|
|
|
extends:
|
|
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
|
|
parameters:
|
|
pool:
|
|
name: EssentialExperiences-windows-2022
|
|
image: MMSWindows2022-Secure
|
|
os: windows
|
|
|
|
stages:
|
|
- stage: Calculator
|
|
jobs:
|
|
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
|
parameters:
|
|
platform: x64
|
|
isReleaseBuild: true
|
|
useReleaseAppxmanifest: true
|
|
|
|
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
|
parameters:
|
|
platform: x86
|
|
isReleaseBuild: true
|
|
useReleaseAppxmanifest: true
|
|
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
|
|
|
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
|
parameters:
|
|
platform: ARM
|
|
isReleaseBuild: true
|
|
useReleaseAppxmanifest: true
|
|
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
|
|
|
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
|
parameters:
|
|
platform: ARM64
|
|
isReleaseBuild: true
|
|
useReleaseAppxmanifest: true
|
|
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
|
|
|
- template: /build/pipelines/templates/run-ui-tests.yaml@self
|
|
parameters:
|
|
platform: x64
|
|
runsettingsFileName: CalculatorUITests.release.runsettings
|
|
|
|
- template: /build/pipelines/templates/run-ui-tests.yaml@self
|
|
parameters:
|
|
platform: x86
|
|
runsettingsFileName: CalculatorUITests.release.runsettings
|
|
|
|
- template: /build/pipelines/templates/run-unit-tests.yaml@self
|
|
parameters:
|
|
platform: x64
|
|
|
|
- template: /build/pipelines/templates/run-unit-tests.yaml@self
|
|
parameters:
|
|
platform: x86
|
|
|
|
- template: /build/pipelines/templates/package-msixbundle.yaml@self
|
|
parameters:
|
|
signBundle: true
|
|
createStoreBrokerPackages: true
|
|
|
|
- template: /build/pipelines/templates/release-store.yaml@self
|
|
- template: /build/pipelines/templates/release-vpack.yaml@self
|