This repository has been archived by the owner on Aug 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
65 lines (59 loc) · 1.75 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# XRTK Azure Pipelines build configuration
resources:
repositories:
- repository: pipeline_repo
type: github
name: XRTK/AzurePipelines
endpoint: XRTK
variables:
project.name: 'XRTK.Examples'
package.name: ''
package.version: ''
EditorPath: ''
LogDirectory: ''
${{ if eq( variables['build.reason'], 'PullRequest' ) }}:
date: ''
${{ if ne( variables['build.reason'], 'PullRequest' ) }}:
date: ${{ '$(Date:yyyyMMdd)' }}
isReleaseBuild: $[ and( eq(variables['Build.SourceBranchName'], 'main'), or( eq(variables['build.reason'], 'BatchedCI'), eq(variables['build.reason'], 'Manual') ) ) ]
isPreviewBuild: $[ and( eq(variables['System.PullRequest.TargetBranch'], 'main'), eq(variables['build.reason'], 'PullRequest') ) ]
name: ${{ coalesce( variables['package.name'], variables['project.name'] ) }} ${{ coalesce( variables['date'], '$(System.PullRequest.PullRequestNumber)', '$(Date:yyyyMMdd)' ) }}$(Rev:.r)
pr:
autoCancel: true
branches:
include:
- main
- development
- feature/*
paths:
include:
- azure-pipelines.yml
- XRTK.Examples/*
exclude:
- '*'
trigger:
batch: true
branches:
include:
- main
paths:
include:
- azure-pipelines.yml
- XRTK.Examples/*
exclude:
- '*'
extends:
template: common.yml@pipeline_repo
parameters:
# Unity -buildTarget command line args https://docs.unity3d.com/Manual/CommandLineArguments.html
# StandaloneWindows64, WSAPlayer, StandaloneOSX, iOS, StandaloneLinux64, Android, WebGL, Lumin
# TODO: Only use XRTK defined platform targets for build
targets:
- StandaloneWindows64
- WSAPlayer
- StandaloneOSX
- iOS
- StandaloneLinux64
- Android
- Lumin
#- WebGL