MonoDevelop.Xml/build.yml

92 строки
2.5 KiB
YAML

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