mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-14 02:26:50 -07:00
Remove 1ESPT for the CI pipeline
This commit is contained in:
parent
05ee7a012c
commit
6eaec19c42
3 changed files with 80 additions and 77 deletions
|
@ -15,63 +15,48 @@ pr:
|
||||||
|
|
||||||
name: 0.$(Date:yyMM).$(DayOfMonth)$(Rev:rr).0
|
name: 0.$(Date:yyMM).$(DayOfMonth)$(Rev:rr).0
|
||||||
|
|
||||||
resources:
|
jobs:
|
||||||
repositories:
|
- template: ./templates/build-single-architecture.yaml
|
||||||
- repository: 1esPipelines
|
|
||||||
type: git
|
|
||||||
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
|
||||||
ref: refs/tags/release
|
|
||||||
|
|
||||||
extends:
|
|
||||||
template: v1/1ES.Unofficial.PipelineTemplate.yml@1esPipelines
|
|
||||||
parameters:
|
parameters:
|
||||||
pool:
|
platform: x64
|
||||||
name: EssentialExperiencesOpenSource-windows-2022
|
isOSSBuild: true
|
||||||
image: MMSWindows2022-Secure
|
oneEspt: false
|
||||||
os: windows
|
|
||||||
|
|
||||||
sdl:
|
- template: ./templates/build-single-architecture.yaml
|
||||||
binskim:
|
parameters:
|
||||||
enabled: false
|
platform: x86
|
||||||
|
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||||
|
isOSSBuild: true
|
||||||
|
oneEspt: false
|
||||||
|
|
||||||
stages:
|
- template: ./templates/build-single-architecture.yaml
|
||||||
- stage: Calculator
|
parameters:
|
||||||
jobs:
|
platform: ARM
|
||||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||||
parameters:
|
isOSSBuild: true
|
||||||
platform: x64
|
oneEspt: false
|
||||||
isOSSBuild: true
|
|
||||||
|
|
||||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
- template: ./templates/build-single-architecture.yaml
|
||||||
parameters:
|
parameters:
|
||||||
platform: x86
|
platform: ARM64
|
||||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||||
isOSSBuild: true
|
isOSSBuild: true
|
||||||
|
oneEspt: false
|
||||||
|
|
||||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
- template: ./templates/run-ui-tests.yaml
|
||||||
parameters:
|
parameters:
|
||||||
platform: ARM
|
platform: x64
|
||||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
isOSSBuild: true
|
||||||
isOSSBuild: true
|
runsettingsFileName: CalculatorUITests.ci.runsettings
|
||||||
|
|
||||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
- template: ./templates/run-unit-tests.yaml
|
||||||
parameters:
|
parameters:
|
||||||
platform: ARM64
|
platform: x64
|
||||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
|
||||||
isOSSBuild: true
|
|
||||||
|
|
||||||
- template: /build/pipelines/templates/run-ui-tests.yaml@self
|
- template: ./templates/run-unit-tests.yaml
|
||||||
parameters:
|
parameters:
|
||||||
platform: x64
|
platform: x86
|
||||||
isOSSBuild: true
|
|
||||||
runsettingsFileName: CalculatorUITests.ci.runsettings
|
|
||||||
|
|
||||||
- template: /build/pipelines/templates/run-unit-tests.yaml@self
|
- template: ./templates/package-msixbundle.yaml
|
||||||
parameters:
|
parameters:
|
||||||
platform: x64
|
oneEspt: false
|
||||||
|
|
||||||
- template: /build/pipelines/templates/run-unit-tests.yaml@self
|
|
||||||
parameters:
|
|
||||||
platform: x86
|
|
||||||
|
|
||||||
- template: /build/pipelines/templates/package-msixbundle.yaml@self
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ parameters:
|
||||||
isReleaseBuild: false
|
isReleaseBuild: false
|
||||||
isOSSBuild: false
|
isOSSBuild: false
|
||||||
useReleaseAppxManifest: false
|
useReleaseAppxManifest: false
|
||||||
|
oneEspt: true # Whether or not this job is going to be running in the 1ES Pipeline Template.
|
||||||
platform: ''
|
platform: ''
|
||||||
condition: ''
|
condition: ''
|
||||||
|
|
||||||
|
@ -11,6 +12,10 @@ jobs:
|
||||||
- job: Build${{ parameters.platform }}
|
- job: Build${{ parameters.platform }}
|
||||||
displayName: Build ${{ parameters.platform }}
|
displayName: Build ${{ parameters.platform }}
|
||||||
condition: ${{ parameters.condition }}
|
condition: ${{ parameters.condition }}
|
||||||
|
pool:
|
||||||
|
name: EssentialExperiencesOpenSource-windows-2022
|
||||||
|
image: MMSWindows2022-Secure
|
||||||
|
os: windows
|
||||||
variables:
|
variables:
|
||||||
BuildConfiguration: Release
|
BuildConfiguration: Release
|
||||||
BuildPlatform: ${{ parameters.platform }}
|
BuildPlatform: ${{ parameters.platform }}
|
||||||
|
@ -28,16 +33,17 @@ jobs:
|
||||||
ManifestFileName: 'Package.appxmanifest'
|
ManifestFileName: 'Package.appxmanifest'
|
||||||
${{ if eq(parameters.useReleaseAppxManifest, true) }}:
|
${{ if eq(parameters.useReleaseAppxManifest, true) }}:
|
||||||
ManifestFileName: 'Package.Release.appxmanifest'
|
ManifestFileName: 'Package.Release.appxmanifest'
|
||||||
templateContext:
|
${{ if eq(parameters.oneEspt, true) }}:
|
||||||
sdl:
|
templateContext:
|
||||||
binskim:
|
sdl:
|
||||||
analyzeTargetGlob: +:f|$(Agent.BuildDirectory)\binskim\**\*
|
binskim:
|
||||||
|
analyzeTargetGlob: +:f|$(Agent.BuildDirectory)\binskim\**\*
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
- output: pipelineArtifact
|
- output: pipelineArtifact
|
||||||
displayName: Publish drop artifact
|
displayName: Publish drop artifact
|
||||||
targetPath: $(Build.BinariesDirectory)\$(BuildConfiguration)\${{ parameters.platform }}
|
targetPath: $(Build.BinariesDirectory)\$(BuildConfiguration)\${{ parameters.platform }}
|
||||||
artifactName: drop-${{ parameters.platform }}
|
artifactName: drop-${{ parameters.platform }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
|
@ -84,6 +90,11 @@ jobs:
|
||||||
configuration: $(BuildConfiguration)
|
configuration: $(BuildConfiguration)
|
||||||
maximumCpuCount: true
|
maximumCpuCount: true
|
||||||
|
|
||||||
|
- ${{ if eq(parameters.oneEspt, false) }}:
|
||||||
|
- publish: $(Build.BinariesDirectory)\$(BuildConfiguration)\${{ parameters.platform }}
|
||||||
|
artifact: drop-${{ parameters.platform }}
|
||||||
|
displayName: Publish drop artifact
|
||||||
|
|
||||||
- ${{ if eq(parameters.isReleaseBuild, true) }}:
|
- ${{ if eq(parameters.isReleaseBuild, true) }}:
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: Copy Files for BinSkim analysis
|
displayName: Copy Files for BinSkim analysis
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
parameters:
|
parameters:
|
||||||
signBundle: false
|
signBundle: false
|
||||||
createStoreBrokerPackages: false
|
createStoreBrokerPackages: false
|
||||||
|
oneEspt: true # Whether or not this job is going to be running in the 1ES Pipeline Template.
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: Package
|
- job: Package
|
||||||
|
@ -29,23 +30,24 @@ jobs:
|
||||||
PackageX64: $[in(dependencies.Buildx64.result, 'Succeeded', 'SucceededWithIssues')]
|
PackageX64: $[in(dependencies.Buildx64.result, 'Succeeded', 'SucceededWithIssues')]
|
||||||
PackageARM: $[in(dependencies.BuildARM.result, 'Succeeded', 'SucceededWithIssues')]
|
PackageARM: $[in(dependencies.BuildARM.result, 'Succeeded', 'SucceededWithIssues')]
|
||||||
PackageARM64: $[in(dependencies.BuildARM64.result, 'Succeeded', 'SucceededWithIssues')]
|
PackageARM64: $[in(dependencies.BuildARM64.result, 'Succeeded', 'SucceededWithIssues')]
|
||||||
templateContext:
|
${{ if eq(parameters.oneEspt, true) }}:
|
||||||
outputs:
|
templateContext:
|
||||||
- ${{ if eq(parameters.signBundle, false) }}:
|
outputs:
|
||||||
- output: pipelineArtifact
|
- ${{ if eq(parameters.signBundle, false) }}:
|
||||||
displayName: Publish MsixBundle artifact
|
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)\msixBundle
|
|
||||||
artifactName: msixBundle
|
|
||||||
- ${{ else }}:
|
|
||||||
- output: pipelineArtifact
|
|
||||||
displayName: Publish MsixBundleSigned artifact
|
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)\msixBundle
|
|
||||||
artifactName: msixBundleSigned
|
|
||||||
- ${{ if eq(parameters.createStoreBrokerPackages, true) }}:
|
|
||||||
- output: pipelineArtifact
|
- output: pipelineArtifact
|
||||||
displayName: Publish StoreBroker Payload artifact
|
displayName: Publish MsixBundle artifact
|
||||||
targetPath: $(StoreBrokerPackagePath)
|
targetPath: $(Build.ArtifactStagingDirectory)\msixBundle
|
||||||
artifactName: storeBrokerPayload
|
artifactName: msixBundle
|
||||||
|
- ${{ else }}:
|
||||||
|
- output: pipelineArtifact
|
||||||
|
displayName: Publish MsixBundleSigned artifact
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)\msixBundle
|
||||||
|
artifactName: msixBundleSigned
|
||||||
|
- ${{ if eq(parameters.createStoreBrokerPackages, true) }}:
|
||||||
|
- output: pipelineArtifact
|
||||||
|
displayName: Publish StoreBroker Payload artifact
|
||||||
|
targetPath: $(StoreBrokerPackagePath)
|
||||||
|
artifactName: storeBrokerPayload
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
|
@ -109,6 +111,11 @@ jobs:
|
||||||
MAPPINGFILEPATH: $(Build.BinariesDirectory)\MsixBundleMapping.txt
|
MAPPINGFILEPATH: $(Build.BinariesDirectory)\MsixBundleMapping.txt
|
||||||
OUTPUTPATH: $(Build.BinariesDirectory)\Microsoft.WindowsCalculator_8wekyb3d8bbwe.msixbundle
|
OUTPUTPATH: $(Build.BinariesDirectory)\Microsoft.WindowsCalculator_8wekyb3d8bbwe.msixbundle
|
||||||
|
|
||||||
|
- ${{ if eq(parameters.oneEspt, false) }}:
|
||||||
|
- publish: $(Build.ArtifactStagingDirectory)\msixBundle
|
||||||
|
artifact: msixBundle
|
||||||
|
displayName: Publish MsixBundle artifact
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: Copy MsixBundle to staging directory
|
displayName: Copy MsixBundle to staging directory
|
||||||
inputs:
|
inputs:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue