This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
67 lines (55 loc) · 1.8 KB
/
azure-pipelines.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
# 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
name: '$(Date:yyyy.MM.dd)$(Rev:.r)'
pool:
vmImage: 'ubuntu-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'x86'
buildConfiguration: 'Release'
steps:
- task: CmdLine@2
inputs:
script: '$(Pipeline.Workspace)/s/AssemblyGenerator.sh $(Build.BuildNumber)'
- task: DotNetCoreCLI@2
inputs:
command: 'publish'
publishWebProjects: false
projects: '**/*.csproj'
zipAfterPublish: false
arguments: '--configuration Debug -r linux-x64 --self-contained true'
modifyOutputPath: false
- task: CopyFiles@2
inputs:
SourceFolder: '$(Pipeline.Workspace)/s/tools'
Contents: '**'
TargetFolder: '$(Pipeline.Workspace)/s/bin/Debug/netcoreapp3.0/linux-x64/publish/tools'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Pipeline.Workspace)/s/bin/Debug/netcoreapp3.0/linux-x64/publish'
includeRootFolder: false
archiveType: 'tar'
archiveFile: '$(Pipeline.Workspace)/s/iCode.tar.gz'
replaceExistingArchive: true
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Pipeline.Workspace)/s/iCode.tar.gz'
artifact: 'iCode.tar.gz'
publishLocation: 'pipeline'
- task: CmdLine@2
inputs:
script: 'bash PackIntoAppImage.sh'
workingDirectory: '$(Pipeline.Workspace)/s/'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Pipeline.Workspace)/s/iCode-x86_64.AppImage'
artifact: 'iCode.AppImage'
publishLocation: 'pipeline'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Pipeline.Workspace)/s/iCode-x86_64.AppImage.zsync'
artifact: 'iCode.AppImage.zsync'
publishLocation: 'pipeline'