msquic/.azure/OneBranch.PullRequest.yml

186 строки
5.9 KiB
YAML

#################################################################################
# OneBranch Pipelines - PR Build #
# This pipeline was created by EasyStart from a sample located at: #
# https://aka.ms/obpipelines/easystart/samples #
# Documentation: https://aka.ms/obpipelines #
# Yaml Schema: https://aka.ms/obpipelines/yaml/schema #
# Retail Tasks: https://aka.ms/obpipelines/tasks #
# Support: https://aka.ms/onebranchsup #
#################################################################################
trigger: none # https://aka.ms/obpipelines/triggers
pr:
- main
- release/*
- msrc/*
name: 0.$(Date:yyyy).$(Date:MM).$(DayOfMonth).$(Rev:rr).0
parameters:
- name: 'debug'
displayName: 'Enable debug output'
type: boolean
default: false
- name: 'WindowsContainerImage2DockerTag'
displayName: 'WindowsContainerImage2 DockerTag'
type: string
default: 'latest'
variables:
system.debug: ${{ parameters.debug }}
ENABLE_PRS_DELAYSIGN: 0
DisableDockerDetector: true
ROOT: $(Build.SourcesDirectory)
REPOROOT: $(Build.SourcesDirectory)
OUTPUTROOT: $(REPOROOT)\out
NUGET_XMLDOC_MODE: none
WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2019/vse2019:latest'
WindowsContainerImage2: 'cdpxb7b51c2f738e43e48f7605d9a8e5f6d700.azurecr.io/b7b51c2f-738e-43e4-8f76-05d9a8e5f6d7/official/msquicbuild:${{ parameters.WindowsContainerImage2DockerTag }}'
LinuxContainerImage: 'ghcr.io/microsoft/msquic/linux-build-xcomp:22.04'
LinuxContainerImage2: 'ghcr.io/microsoft/msquic/linux-build-xcomp:20.04'
resources:
repositories:
- repository: templates
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main
extends:
template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates
parameters:
globalSdl: # https://aka.ms/obpipelines/sdl
tsa:
enabled: false # onebranch publish all sdl results to TSA. If TSA is disabled all SDL tools will forced into 'break' build mode.
# credscan:
# suppressionsFile: $(Build.SourcesDirectory)\.config\CredScanSuppressions.json
binskim:
break: true # always break the build on binskim issues. You can disable it by setting to 'false'
policheck:
break: true # always break the build on policheck issues. You can disable it by setting to 'false'
suppression:
suppressionFile: $(Build.SourcesDirectory)\.azure\openssl.gdnsuppress
stages:
- stage: build_winkernel
displayName: Build Windows Kernel
dependsOn: []
jobs:
- template: .azure/obtemplates/build-winkernel.yml@self
parameters:
config: Release
- template: .azure/obtemplates/build-winkernel.yml@self
parameters:
config: Debug
- stage: build_windows_xdp
displayName: Build Windows XDP
dependsOn: []
jobs:
- template: .azure/obtemplates/build-winuser-xdp.yml@self
parameters:
config: Release
- template: .azure/obtemplates/build-winuser-xdp.yml@self
parameters:
config: Debug
- stage: build_windows
displayName: Build Windows
dependsOn: []
jobs:
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: schannel
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: schannel
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: openssl
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: openssl
- stage: build_gamecore_console
displayName: Build Gamecore
dependsOn: []
jobs:
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: schannel
platform: gamecore_console
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: schannel
platform: gamecore_console
- stage: build_uwp
displayName: Build Windows UWP
dependsOn: []
jobs:
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: schannel
platform: uwp
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: schannel
platform: uwp
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: openssl
platform: uwp
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: openssl
platform: uwp
- stage: build_linux
displayName: Build Linux
dependsOn: []
jobs:
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Release
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Debug
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Release
tls: openssl3
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Debug
tls: openssl3
- stage: package_linux
displayName: Package Linux
dependsOn:
- build_linux
jobs:
- template: .azure/obtemplates/build-linux-packages.yml@self
- stage: package_windows
displayName: Package Windows
dependsOn:
- build_windows
- build_uwp
- build_windows_xdp
jobs:
- template: .azure/obtemplates/build-nuget.yml@self