winforms/azure-pipelines-PR.yml

116 строки
2.9 KiB
YAML

# Parameters ARE available in template expressions, and parameters can have default values,
# so they can be used to control yaml flow.
# trigger ci builds for completed checkins into main and any release branches
trigger:
branches:
include:
- main
- release/*
- internal/release/*
- internal/experimental/*
paths:
include:
- '*'
exclude:
- .github/*
- docs/*
- CODE-OF-CONDUCT.md
- CONTRIBUTING.md
- LICENSE.TXT
- PATENTS.TXT
- README.md
- SECURITY.md
- THIRD-PARTY-NOTICES.TXT
# trigger ci builds on pull requests into main and any release branches
pr:
autoCancel: true
branches:
include:
- main
- vnext
- release/*
- internal/release/*
- internal/experimental/*
- feature/*
paths:
include:
- '*'
exclude:
- .github/*
- docs/*
- CODE-OF-CONDUCT.md
- CONTRIBUTING.md
- LICENSE.TXT
- PATENTS.TXT
- README.md
- SECURITY.md
- THIRD-PARTY-NOTICES.TXT
variables:
- name: TeamName
value: DotNetCore
# clean the local repo on the build agents
- name: Build.Repository.Clean
value: true
- ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual')) }}:
- name: PostBuildSign
value: false
- ${{ else }}:
- name: PostBuildSign
value: true
- name: EnableLoc
value: ${{ contains(variables['Build.SourceBranch'], 'main') }}
- name: NativeToolsOnMachine
value: true
- ${{ if ne(variables['System.TeamProject'], 'internal') }}:
- name: _InternalRuntimeDownloadArgs
value: ''
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
- group: AzureDevOps-Artifact-Feeds-Pats
- name: _InternalRuntimeDownloadArgs
value: /p:DotNetRuntimeSourceFeed=https://dotnetbuilds.blob.core.windows.net/internal
/p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
# Produce test-signed build for PR and Public builds
# needed for darc (dependency flow) publishing
- name: _PublishArgs
value: ''
- name: _OfficialBuildIdArgs
value: ''
# needed for signing
- name: _SignType
value: test
- name: _SignArgs
value: ''
- name: _Sign
value: false
stages:
- stage: Build
jobs:
# Windows x64
- template: /eng/pipelines/build-PR.yml
parameters:
name: Windows_x64
targetArchitecture: x64
skipTests: $(SkipTests)
# Windows x86
- template: /eng/pipelines/build-PR.yml
parameters:
name: Windows_x86
targetArchitecture: x86
skipTests: $(SkipTests)
# Windows arm64
- template: /eng/pipelines/build-PR.yml
parameters:
name: Windows_arm64
targetArchitecture: arm64
skipTests: $(SkipTests)