5
5
- master
6
6
7
7
jobs :
8
- - job : Mac_Build
9
- displayName : Mac Build
10
- timeoutInMinutes : 360
11
- pool :
12
- vmImage : macos-latest
13
- steps :
14
-
15
- - task : InstallSSHKey@0
16
- inputs :
17
- knownHostsEntry : |
18
- github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
19
- github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
20
- github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
21
- sshKeySecureFile : ' pipelines_rsa'
22
-
23
- - checkout : self
24
- submodules : recursive
25
- clean : true
26
- fetchTags : false
27
-
28
- - task : PowerShell@2
29
- displayName : Add CurrentVersion Variable
30
- inputs :
31
- targetType : inline
32
- script : |
33
- $VersionString = git show -s --format=%ci $(Build.SourceVersion)
34
- $VersionDate = [DateTimeOffset]::Parse($VersionString)
35
- $CurrentVersion = $VersionDate.ToString("yyyy.MM.dd.HHmm")
36
-
37
- [System.Console]::WriteLine("##vso[task.setvariable variable=CurrentVersion]$CurrentVersion")
38
-
39
- Write-Host "Setting current version to $CurrentVersion."
40
-
41
- - task : UseDotNet@2
42
- displayName : Use .NET SDK
43
- inputs :
44
- version : 8.x
45
-
46
- - task : DotNetCoreCLI@2
47
- displayName : dotnet publish x64
48
- inputs :
49
- command : publish
50
- publishWebProjects : false
51
- projects : ' **/Agent.csproj'
52
- arguments : -c $(BuildConfiguration) -r osx-x64 -o "$(Build.SourcesDirectory)/Agent/bin/publish" /p:Version=$(CurrentVersion) /p:FileVersion=$(CurrentVersion)
53
- zipAfterPublish : false
54
- modifyOutputPath : false
55
-
56
- - task : PowerShell@2
57
- displayName : PowerShell Script
58
- inputs :
59
- targetType : inline
60
- script : |
61
- Compress-Archive -Path "$(Build.SourcesDirectory)/Agent/bin/publish/*" -DestinationPath "$(Build.SourcesDirectory)/Agent/bin/Remotely-MacOS-x64.zip" -Force
62
-
63
- - task : PublishPipelineArtifact@1
64
- displayName : Publish macOS x64 Agent
65
- inputs :
66
- path : $(Build.SourcesDirectory)/Agent/bin/Remotely-MacOS-x64.zip
67
- artifactName : Mac-x64-Agent
68
-
69
8
- job : Windows_Build
70
9
displayName : Windows Build
71
10
timeoutInMinutes : 360
90
29
- task : VisualStudioTestPlatformInstaller@1
91
30
displayName : Visual Studio Test Platform Installer
92
31
93
- - task : DownloadPipelineArtifact@2
94
- displayName : Download macOS x64 Agent
95
- inputs :
96
- artifact : Mac-x64-Agent
97
- path : $(Build.SourcesDirectory)\Server\wwwroot\Content\
98
-
99
32
- task : PowerShell@2
100
33
displayName : Add CurrentVersion Variable
101
34
inputs :
@@ -112,12 +45,6 @@ jobs:
112
45
- task : NuGetToolInstaller@1
113
46
displayName : ' Use NuGet'
114
47
115
- - task : NuGetCommand@2
116
- displayName : NuGet restore Agent.Installer.Win
117
- inputs :
118
- solution : Agent.Installer.Win/packages.config
119
- packagesDirectory : $(Build.SourcesDirectory)\packages
120
-
121
48
- task : UseDotNet@2
122
49
displayName : Use .NET SDK
123
50
inputs :
0 commit comments