Skip to content

Commit b8b1969

Browse files
committed
Update pipeline.
1 parent d5d5613 commit b8b1969

File tree

2 files changed

+2
-75
lines changed

2 files changed

+2
-75
lines changed

.azure-pipelines/Release Build.yml

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -5,67 +5,6 @@ pr:
55
- master
66

77
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-
698
- job: Windows_Build
709
displayName: Windows Build
7110
timeoutInMinutes: 360
@@ -90,12 +29,6 @@ jobs:
9029
- task: VisualStudioTestPlatformInstaller@1
9130
displayName: Visual Studio Test Platform Installer
9231

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-
9932
- task: PowerShell@2
10033
displayName: Add CurrentVersion Variable
10134
inputs:
@@ -112,12 +45,6 @@ jobs:
11245
- task: NuGetToolInstaller@1
11346
displayName: 'Use NuGet'
11447

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-
12148
- task: UseDotNet@2
12249
displayName: Use .NET SDK
12350
inputs:

Utilities/Publish.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ if ((Test-Path -Path "$Root\Agent\bin\publish\linux-x64") -eq $true) {
102102
dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runtime win-x64 --self-contained --configuration Release --output "$Root\Agent\bin\publish\win-x64" "$Root\Agent"
103103
dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runtime linux-x64 --self-contained --configuration Release --output "$Root\Agent\bin\publish\linux-x64" "$Root\Agent"
104104
dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runtime win-x86 --self-contained --configuration Release --output "$Root\Agent\bin\publish\win-x86" "$Root\Agent"
105-
#dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runtime osx-x64 --self-contained --configuration Release --output "$Root\Agent\bin\publish\osx-x64" "$Root\Agent"
106-
#dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runtime osx-arm64 --self-contained --configuration Release --output "$Root\Agent\bin\publish\osx-arm64" "$Root\Agent"
105+
dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runtime osx-x64 --self-contained --configuration Release --output "$Root\Agent\bin\publish\osx-x64" "$Root\Agent"
106+
dotnet publish /p:Version=$CurrentVersion /p:FileVersion=$CurrentVersion --runtime osx-arm64 --self-contained --configuration Release --output "$Root\Agent\bin\publish\osx-arm64" "$Root\Agent"
107107

108108
New-Item -Path "$Root\Agent\bin\publish\win-x64\Desktop\" -ItemType Directory -Force
109109
New-Item -Path "$Root\Agent\bin\publish\win-x86\Desktop\" -ItemType Directory -Force

0 commit comments

Comments
 (0)