SkiaSharp/scripts/azure-pipelines.yml

141 строка
4.6 KiB
YAML
Исходник Постоянная ссылка Обычный вид История

trigger:
- main
2020-04-28 22:45:19 +03:00
- develop
- release/*
2020-03-10 00:57:56 +03:00
pr:
- main
2020-04-28 22:45:19 +03:00
- develop
- release/*
2020-03-10 00:57:56 +03:00
2021-11-13 08:59:12 +03:00
parameters:
- name: buildExternals
2024-02-28 23:38:00 +03:00
displayName: 'The Build ID containing the specific native artifacts to use:'
type: string
default: 'latest'
2024-02-28 23:38:00 +03:00
- name: buildAgentHost
displayName: 'The generic host build agent configuration:'
2022-05-27 21:23:34 +03:00
type: object
default:
pool:
2024-03-06 22:44:34 +03:00
name: Maui-1ESPT
2024-02-28 23:38:00 +03:00
image: 1ESPT-Windows2022
os: windows
- name: buildAgentWindows
displayName: 'The Windows build agent configuration:'
type: object
default:
pool:
2024-03-06 22:44:34 +03:00
name: Maui-1ESPT
2024-02-28 23:38:00 +03:00
image: 1ESPT-Windows2022
os: windows
2024-07-29 15:48:02 +03:00
- name: buildAgentWindowsNative
displayName: 'The Windows build agent configuration for building the native assets:'
type: object
default:
pool:
name: Maui-1ESPT
image: 1ESPT-Windows2022
os: windows
2024-02-28 23:38:00 +03:00
- name: buildAgentMac
displayName: 'The macOS build agent configuration:'
type: object
2024-07-29 15:48:02 +03:00
default:
pool:
name: Azure Pipelines
vmImage: macos-14
os: macos
- name: buildAgentMacNative
displayName: 'The macOS build agent configuration for building the native assets:'
type: object
default:
pool:
name: Azure Pipelines
vmImage: macos-13
2024-02-28 23:38:00 +03:00
os: macos
- name: buildAgentLinux
2024-07-29 15:48:02 +03:00
displayName: 'The Linux build agent configuration:'
type: object
default:
pool:
name: Maui-1ESPT
image: 1ESPT-Ubuntu22.04
os: linux
- name: buildAgentLinuxNative
displayName: 'The Linux build agent configuration for building the native assets:'
type: object
default:
pool:
2024-03-06 22:44:34 +03:00
name: Maui-1ESPT
2024-02-28 23:38:00 +03:00
image: 1ESPT-Ubuntu20.04
os: linux
- name: runCompliance
2024-03-25 20:59:30 +03:00
displayName: 'Run post-build compliance tasks (such as API Scan and PoliCheck)'
type: boolean
default: false
- name: forceRealSigning
displayName: 'Ignore all logic and force Real signing on binaries'
type: boolean
default: false
2021-11-13 08:59:12 +03:00
variables:
2024-02-28 23:38:00 +03:00
- template: /scripts/azure-pipelines-variables.yml@self
resources:
repositories:
- repository: xamarin-templates
type: github
name: xamarin/yaml-templates
endpoint: xamarin
2020-12-27 15:47:09 +03:00
ref: refs/heads/main
2024-02-28 23:38:00 +03:00
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
2024-02-28 23:38:00 +03:00
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool: ${{ parameters.buildAgentHost.pool }}
customBuildTags:
- ES365AIMigrationTooling
stages:
- template: /scripts/azure-templates-stages.yml@self
parameters:
buildPipelineType: 'build'
buildExternals: ${{ parameters.buildExternals }}
2024-03-25 20:59:30 +03:00
${{ if and(eq(variables['System.TeamProject'], 'devdiv'), ne(variables['System.PullRequest.IsFork'], 'true')) }}:
enableSigning: true
forceRealSigning: ${{ parameters.forceRealSigning }}
2024-03-25 20:59:30 +03:00
${{ if or(parameters.runCompliance, and(eq(variables['Build.Reason'], 'Schedule'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')))) }}:
sdl:
apiscan:
enabled: true
binskim:
enabled: true
break: false
codeInspector:
enabled: true
credscan:
enabled: true
# suppressionsFile: $(Build.SourcesDirectory)\scripts\guardian\CredScanSuppressions.json
policheck:
enabled: true
exclusionsFile: $(Build.SourcesDirectory)\scripts\guardian\PoliCheckExclusions.xml
spotBugs:
enabled: false
suppression:
suppressionFile: $(Build.SourcesDirectory)\scripts\guardian\source.gdnsuppress
tsa:
enabled: true
configFile: $(Build.SourcesDirectory)\scripts\guardian\tsaoptions-v2.json
2024-02-28 23:38:00 +03:00
use1ESPipelineTemplates: true
buildAgentHost: ${{ parameters.buildAgentHost }}
buildAgentWindows: ${{ parameters.buildAgentWindows }}
2024-07-29 15:48:02 +03:00
buildAgentWindowsNative: ${{ parameters.buildAgentWindowsNative }}
2024-02-28 23:38:00 +03:00
buildAgentMac: ${{ parameters.buildAgentMac }}
2024-07-29 15:48:02 +03:00
buildAgentMacNative: ${{ parameters.buildAgentMacNative }}
2024-02-28 23:38:00 +03:00
buildAgentLinux: ${{ parameters.buildAgentLinux }}
2024-07-29 15:48:02 +03:00
buildAgentLinuxNative: ${{ parameters.buildAgentLinuxNative }}
buildAgentAndroidTests: ${{ parameters.buildAgentMac }}