2019-08-08 05:06:28 +03:00
|
|
|
trigger:
|
2021-05-18 18:48:17 +03:00
|
|
|
- main
|
2019-08-08 05:06:28 +03:00
|
|
|
- refs/tags/*
|
|
|
|
|
2020-03-10 20:24:11 +03:00
|
|
|
pr:
|
2021-05-18 18:48:17 +03:00
|
|
|
- main
|
2020-07-08 10:38:51 +03:00
|
|
|
|
2024-06-14 00:54:25 +03:00
|
|
|
parameters:
|
|
|
|
- name: RunExtendedTests
|
|
|
|
displayName: Run Extended Tests?
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
|
2019-03-02 02:03:49 +03:00
|
|
|
variables:
|
2024-06-14 00:54:25 +03:00
|
|
|
# Variables used by both AndroidX/GPS go in the template
|
|
|
|
- template: build/ci/variables.yml@self
|
2024-03-04 22:42:29 +03:00
|
|
|
|
2024-06-14 00:54:25 +03:00
|
|
|
# Variables only used by AndroidX go here
|
|
|
|
- name: skipUnitTests
|
|
|
|
value: false
|
2024-08-05 06:38:52 +03:00
|
|
|
- name: skipSamplesTests
|
|
|
|
value: true
|
2024-03-04 22:42:29 +03:00
|
|
|
|
2019-03-02 02:03:49 +03:00
|
|
|
resources:
|
|
|
|
repositories:
|
2024-03-04 22:42:29 +03:00
|
|
|
- repository: 1esPipelines
|
|
|
|
type: git
|
|
|
|
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
|
|
|
ref: refs/tags/release
|
2019-08-27 03:19:22 +03:00
|
|
|
- repository: internal-templates
|
2019-03-02 02:03:49 +03:00
|
|
|
type: github
|
|
|
|
name: xamarin/yaml-templates
|
|
|
|
endpoint: xamarin
|
2020-09-11 18:32:42 +03:00
|
|
|
ref: refs/heads/main
|
2019-03-02 02:03:49 +03:00
|
|
|
|
2024-03-04 22:42:29 +03:00
|
|
|
extends:
|
|
|
|
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
|
|
|
|
parameters:
|
|
|
|
pool:
|
|
|
|
name: AzurePipelines-EO
|
|
|
|
image: 1ESPT-Windows2022
|
|
|
|
os: windows
|
|
|
|
|
|
|
|
stages:
|
2024-06-14 00:54:25 +03:00
|
|
|
- stage: build_windows
|
|
|
|
displayName: Build - Windows
|
2024-03-04 22:42:29 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- template: build/ci/build.yml@self
|
|
|
|
parameters:
|
|
|
|
name: windows
|
|
|
|
buildPool:
|
|
|
|
name: $(windowsAgentPoolName)
|
|
|
|
image: $(windowsImage)
|
|
|
|
os: windows
|
|
|
|
runAPIScan: true
|
|
|
|
|
2024-06-14 00:54:25 +03:00
|
|
|
- template: sign-artifacts/jobs/v2.yml@internal-templates
|
|
|
|
parameters:
|
|
|
|
artifactName: output-windows
|
|
|
|
usePipelineArtifactTasks: true
|
|
|
|
use1ESTemplate: true
|
|
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
|
|
|
|
|
|
|
|
- stage: build_mac
|
|
|
|
displayName: Build - Mac
|
|
|
|
dependsOn:
|
|
|
|
|
|
|
|
jobs:
|
2024-03-04 22:42:29 +03:00
|
|
|
- template: build/ci/build.yml@self
|
|
|
|
parameters:
|
|
|
|
name: macos
|
|
|
|
buildPool:
|
|
|
|
name: $(macosAgentPoolName)
|
|
|
|
vmImage: $(macosImage)
|
|
|
|
os: macOS
|
|
|
|
|
2024-08-05 06:38:52 +03:00
|
|
|
- template: build/ci/stage-standard-tests.yml@self
|
|
|
|
parameters:
|
|
|
|
buildPool:
|
|
|
|
name: $(windowsAgentPoolName)
|
|
|
|
image: $(windowsImage)
|
|
|
|
os: windows
|
|
|
|
|
2024-06-14 00:54:25 +03:00
|
|
|
- template: build/ci/stage-extended-tests.yml@self
|
|
|
|
parameters:
|
2024-08-05 06:38:52 +03:00
|
|
|
stageCondition: and(succeeded(), ne('$(skipUnitTests)', 'true'), eq('${{ parameters.RunExtendedTests }}', 'true'))
|
2024-06-14 00:54:25 +03:00
|
|
|
buildPool:
|
|
|
|
name: $(windowsAgentPoolName)
|
|
|
|
image: $(windowsImage)
|
|
|
|
os: windows
|