This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
forked from mhutch/MonoDevelop.Xml
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.yml
91 lines (77 loc) · 2.55 KB
/
build.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
trigger:
- mac
pr:
- mac
resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
sbom:
enabled: false
stages:
- stage: Build
jobs:
- job: Build
pool:
name: 'Azure Pipelines'
vmImage: 'macos-latest'
os: macOS
variables:
- name: Codeql.Enabled
value: false
- name: Packaging.EnableSBOMSigning
value: true
- name: BUILDSECMON_OPT_IN
value: true
steps:
- task: NuGetAuthenticate@1
displayName: Authenticate NuGet feeds
inputs:
forceReinstallCredentialProvider: true
- task: DotNetCoreCLI@2
displayName: Build and Package
inputs:
command: build
projects: Editor/MonoDevelop.Xml.Editor.csproj
arguments: '-c Release'
- task: 1ES.PublishNuget@1
displayName: Push
condition: false
#condition: and(succeeded(), eq(variables['Build.SourceBranchName'], 'mac'))
inputs:
packagesToPush: '$(Build.SourcesDirectory)/**/Release/*.nupkg'
packageParentPath: '$(Build.SourcesDirectory)'
feedPublish: 'Xamarin'
- task: ManifestGeneratorTask@0
inputs:
PackageName: 'MonoDevelop.Xml (Xamarin)'
BuildDropPath: '$(Build.SourcesDirectory)/Editor/bin'
ManifestDirPath: '$(Build.SourcesDirectory)'
BuildComponentPath: '$(Build.SourcesDirectory)'
AdditionalComponentDetectorArgs: '--DirectoryExclusionList **/Tests/**'
displayName: 'Generating SBOM'
- task: 1ES.PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.SourcesDirectory)/Editor/bin/Release'
artifactName: NuGet-Core
displayName: Publish Core NuGet package
- task: 1ES.PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.SourcesDirectory)/Core/bin/Release'
artifactName: NuGet-Editor
displayName: Publish Editor NuGet package
- task: 1ES.PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.SourcesDirectory)/_manifest'
artifactName: SBOM
displayName: Publish SBOM