mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 03:19:56 +00:00
CI - Moved pipeline definitions
This commit is contained in:
1 parent
b795fb8c7f
commit
ca3dd4fb73
2 files changed
No files matched your search
@@ -0,0 +1,46 @@
|
||||
# .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
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: RGBdotNET
|
||||
type: github
|
||||
endpoint: github.com_SpoinkyNL
|
||||
name: DarthAffe/RGB.NET
|
||||
ref: Development
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- Development
|
||||
|
||||
trigger: none
|
||||
|
||||
pool:
|
||||
vmImage: 'windows-latest'
|
||||
|
||||
variables:
|
||||
rgbSolution: '**/RGB.NET.sln'
|
||||
|
||||
steps:
|
||||
- checkout: RGBdotNET
|
||||
|
||||
- task: NuGetToolInstaller@1
|
||||
|
||||
- task: NuGetCommand@2
|
||||
inputs:
|
||||
restoreSolution: '$(rgbSolution)'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: 'Build RGB.NET'
|
||||
inputs:
|
||||
command: 'build'
|
||||
projects: '$(rgbSolution)'
|
||||
|
||||
- task: PublishPipelineArtifact@1
|
||||
displayName: 'Upload build to Azure Pipelines'
|
||||
inputs:
|
||||
targetPath: '$(Build.SourcesDirectory)/bin/netstandard2.0'
|
||||
artifact: 'RGB.NET development build'
|
||||
publishLocation: 'pipeline'
|
||||
@@ -0,0 +1,66 @@
|
||||
# .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: NuGetToolInstaller@1
|
||||
|
||||
- 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: NuGetCommand@2
|
||||
displayName: 'NuGet restore Artemis'
|
||||
inputs:
|
||||
restoreSolution: '$(artemisSolution)'
|
||||
|
||||
- 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'
|
||||
Reference in new issue
Block a user