This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 344
/
Copy pathcorefxlab-base.yml
77 lines (70 loc) · 3.04 KB
/
corefxlab-base.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
66
67
68
69
70
71
72
73
74
75
76
77
parameters:
name: ''
displayName: ''
targetOS: ''
pool: {}
isOfficialBuild: false
jobs:
- template: eng/common/templates/jobs/jobs.yml
parameters:
enableMicrobuild: true
enablePublishBuildArtifacts: true
enablePublishBuildAssets: true
enablePublishUsingPipelines: true
enableTelemetry: true
graphFileGeneration:
enabled: false
includeToolset: false
helixRepo: dotnet/corefxlab
jobs:
- job: ${{ parameters.name }}
timeoutInMinutes: 90
displayName: ${{ parameters.displayName }}
variables:
- ${{ if eq(parameters.targetOS, 'Windows_NT') }}:
- name: _buildScript
value: build.cmd
- ${{ if ne(parameters.targetOS, 'Windows_NT') }}:
- name: _buildScript
value: ./build.sh
# Only enable publishing in non-public, non PR scenarios.
- ${{ if and(eq(parameters.isOfficialBuild, 'true'), eq(parameters.targetOS, 'Windows_NT')) }}:
# DotNet-Blob-Feed provides: dotnetfeed-storage-access-key-1
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
# DotNet-HelixApi-Access provides: HelixApiAccessToken
- group: DotNet-Blob-Feed
- group: Publish-Build-Assets
- group: DotNet-HelixApi-Access
- _PublishBlobFeedUrl: https://dotnetfeed.blob.core.windows.net/dotnet-experimental/index.json
- _InternalBuildArgs: /p:DotNetSignType=$(_SignType) /p:TeamName=$(_TeamName)
/p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed)
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
/p:DotNetPublishBlobFeedUrl=$(_PublishBlobFeedUrl)
/p:DotNetPublishUsingPipelines=true
/p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory)
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
- name: _buildArguments
value: -Configuration $(_BuildConfig) -ci -sign -pack -publish $(_InternalBuildArgs)
- name: _SignType
value: real
- group: DotNet-Symbol-Server-Pats
- name: _SymwebSymbolServerPath
value: https://microsoft.artifacts.visualstudio.com/DefaultCollection
- name: _MsdlSymbolServerPath
value: https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection
- name: _DotNetPublishToBlobFeed
value: true
- ${{ if eq(parameters.isOfficialBuild, 'false') }}:
- name: _buildArguments
value: -Configuration $(_BuildConfig) -test -ci -pack
pool: ${{ parameters.pool }}
strategy:
matrix:
x64_Release:
_BuildConfig: Release
${{ if eq(parameters.isOfficialBuild, 'false') }}:
x64_Debug:
_BuildConfig: Debug
steps:
- script: $(_buildScript) $(_buildArguments)
displayName: Build and Test