mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Update minVersion in appxmanifest only when public release
This commit is contained in:
parent
af1c7a8b6e
commit
3896ea1de9
5 changed files with 28 additions and 27 deletions
|
@ -20,16 +20,24 @@ jobs:
|
|||
- template: ./templates/build-app-internal.yaml
|
||||
parameters:
|
||||
platform: x86
|
||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||
|
||||
- template: ./templates/build-app-internal.yaml
|
||||
parameters:
|
||||
platform: ARM
|
||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||
|
||||
- template: ./templates/run-ui-tests.yaml
|
||||
parameters:
|
||||
platform: x64
|
||||
runsettingsFileName: CalculatorUITests.release.runsettings
|
||||
|
||||
- template: ./templates/run-ui-tests.yaml
|
||||
parameters:
|
||||
platform: x86
|
||||
runsettingsFileName: CalculatorUITests.release.runsettings
|
||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||
|
||||
- template: ./templates/run-unit-tests.yaml
|
||||
parameters:
|
||||
platform: x64
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
#
|
||||
# Continuous Integration (CI) - Internal
|
||||
# This pipeline builds and validate the app for all supported architectures, in a production
|
||||
# configuration. This pipeline relies on Microsoft-internal resources to run.
|
||||
# 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
|
||||
trigger:
|
||||
- master
|
||||
- release/*
|
||||
- feature/*
|
||||
pr: none
|
||||
|
||||
name: 0.$(Date:yyMM).$(DayOfMonth)$(Rev:rr).0
|
||||
|
@ -19,15 +22,20 @@ jobs:
|
|||
parameters:
|
||||
platform: x86
|
||||
isPublicRelease: true
|
||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||
|
||||
- template: ./templates/build-app-internal.yaml
|
||||
parameters:
|
||||
platform: ARM
|
||||
isPublicRelease: true
|
||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||
|
||||
- template: ./templates/run-ui-tests.yaml
|
||||
- template: ./templates/run-unit-tests.yaml
|
||||
parameters:
|
||||
platform: x64
|
||||
runsettingsFileName: CalculatorUITests.release.runsettings
|
||||
|
||||
- template: ./templates/run-unit-tests.yaml
|
||||
parameters:
|
||||
platform: x86
|
||||
|
||||
- template: ./templates/package-appxbundle.yaml
|
||||
|
|
|
@ -4,13 +4,6 @@
|
|||
# Store and the Windows image. This pipeline relies on Microsoft-internal resources to run.
|
||||
#
|
||||
|
||||
schedules:
|
||||
- cron: "0 7 * * *"
|
||||
displayName: Daily midnight build
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
|
||||
trigger: none
|
||||
pr: none
|
||||
|
||||
|
@ -26,27 +19,20 @@ jobs:
|
|||
- template: ./templates/build-app-internal.yaml
|
||||
parameters:
|
||||
platform: x64
|
||||
isPublicRelease: true
|
||||
|
||||
- template: ./templates/build-app-internal.yaml
|
||||
parameters:
|
||||
platform: x86
|
||||
isPublicRelease: true
|
||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||
|
||||
- template: ./templates/build-app-internal.yaml
|
||||
parameters:
|
||||
platform: ARM
|
||||
isPublicRelease: true
|
||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||
|
||||
- template: ./templates/run-ui-tests.yaml
|
||||
parameters:
|
||||
platform: x64
|
||||
runsettingsFileName: CalculatorUITests.release.runsettings
|
||||
|
||||
- template: ./templates/run-ui-tests.yaml
|
||||
parameters:
|
||||
platform: x86
|
||||
runsettingsFileName: CalculatorUITests.release.runsettings
|
||||
|
||||
- template: ./templates/run-unit-tests.yaml
|
||||
parameters:
|
||||
platform: x64
|
||||
|
|
|
@ -23,11 +23,10 @@ steps:
|
|||
displayName: Set version number in AppxManifest
|
||||
inputs:
|
||||
filePath: $(Build.SourcesDirectory)\build\scripts\UpdateAppxManifestVersion.ps1
|
||||
arguments: versionArgs
|
||||
${{ if eq(parameters.isPublicRelease, true) }}:
|
||||
versionArgs: '-AppxManifest $(Build.SourcesDirectory)\src\Calculator\Package.appxmanifest -Version $(Build.BuildNumber) -MinVersion 10.0.22000.0'
|
||||
arguments: '-AppxManifest $(Build.SourcesDirectory)\src\Calculator\Package.appxmanifest -Version $(Build.BuildNumber) -MinVersion 10.0.22000.0'
|
||||
${{ if eq(parameters.isPublicRelease, false) }}:
|
||||
versionArgs: '-AppxManifest $(Build.SourcesDirectory)\src\Calculator\Package.appxmanifest -Version $(Build.BuildNumber)'
|
||||
arguments: '-AppxManifest $(Build.SourcesDirectory)\src\Calculator\Package.appxmanifest -Version $(Build.BuildNumber)'
|
||||
|
||||
- task: VSBuild@1
|
||||
displayName: 'Build solution src/Calculator.sln'
|
||||
|
|
|
@ -26,7 +26,7 @@ param(
|
|||
[ValidateScript({[version]$_})]
|
||||
[Parameter(Mandatory)]
|
||||
[string]
|
||||
$Version
|
||||
$Version,
|
||||
|
||||
[ValidateScript({[version]$_})]
|
||||
[Parameter(Mandatory=$false)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue