1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00
Artemis/ci/azure-pipelines.yml
2020-11-15 23:55:27 +01:00

65 lines
1.8 KiB
YAML

# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
artemisSolution: '**/Artemis.sln'
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
steps:
- checkout: self
path: s/Artemis
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: '882fdc71-c09c-4923-8ab0-2cd9fcf0656d'
definition: '3'
buildVersionToDownload: 'latest'
artifactName: 'RGB.NET development build'
targetPath: '$(Pipeline.Workspace)/s/RGB.NET/bin/netstandard2.0'
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: '$(artemisSolution)'
feedsToUse: 'config'
# - task: ResharperCli@2
# inputs:
# solutionOrProjectPath: 'src/Artemis.sln'
# failBuildLevelSelector: 'Error'
# additionalArguments: '/disable-settings-layers:SolutionPersonal --properties:Configuration=win-x64'
- task: DotNetCoreCLI@2
displayName: 'Publish Artemis'
inputs:
command: 'publish'
publishWebProjects: false
projects: '$(artemisSolution)'
arguments: '--runtime win-x64 --self-contained false --output $(Build.ArtifactStagingDirectory)/build /nowarn:cs1591'
zipAfterPublish: false
modifyOutputPath: false
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: '882fdc71-c09c-4923-8ab0-2cd9fcf0656d'
definition: '2'
buildVersionToDownload: 'latest'
artifactName: 'Artemis build'
targetPath: '$(Build.ArtifactStagingDirectory)/build'
- task: PublishPipelineArtifact@1
displayName: 'Upload build to Azure Pipelines'
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/build'
artifact: 'Artemis build'
publishLocation: 'pipeline'