@@ -51,22 +51,16 @@ jobs:
5151 Remove-Item -Path "${{ github.workspace }}\src\Agent\_profilerBuild\linux-release" -Recurse -Force -ErrorAction SilentlyContinue
5252 shell : powershell
5353
54- - name : Install dependencies
55- run : |
56- Write-Host ${{ env.tools_path }}\nuget.exe restore ${{ env.profiler_solution_path }} -NoCache -Source `"https://www.nuget.org/api/v2`"
57- ${{ env.tools_path }}\nuget.exe restore ${{ env.profiler_solution_path }} -NoCache -Source "https://www.nuget.org/api/v2"
58- shell : powershell
59-
6054 - name : Build x64
6155 run : |
62- Write-Host "MSBuild.exe -m -p:Platform=x64 -p:Configuration=Release ${{ env.profiler_solution_path }}"
63- MSBuild.exe -m -p:Platform=x64 -p:Configuration=Release ${{ env.profiler_solution_path }}
56+ Write-Host "MSBuild.exe -restore - m -p:Platform=x64 -p:Configuration=Release ${{ env.profiler_solution_path }}"
57+ MSBuild.exe -restore - m -p:Platform=x64 -p:Configuration=Release ${{ env.profiler_solution_path }}
6458 shell : powershell
6559
6660 - name : Build x86
6761 run : |
68- Write-Host "MSBuild.exe -m -p:Platform=Win32 -p:Configuration=Release ${{ env.profiler_solution_path }}"
69- MSBuild.exe -m -p:Platform=Win32 -p:Configuration=Release ${{ env.profiler_solution_path }}
62+ Write-Host "MSBuild.exe -restore - m -p:Platform=Win32 -p:Configuration=Release ${{ env.profiler_solution_path }}"
63+ MSBuild.exe -restore - m -p:Platform=Win32 -p:Configuration=Release ${{ env.profiler_solution_path }}
7064 shell : powershell
7165
7266 - name : Archive Artifacts
@@ -155,23 +149,11 @@ jobs:
155149 with :
156150 name : profiler
157151 path : ${{ github.workspace }}/src/Agent/_profilerBuild/
158-
159- - name : Install dependencies for FullAgent.sln
160- run : |
161- Write-Host ${{ env.tools_path }}\nuget.exe restore ${{ env.fullagent_solution_path }} -NoCache -Source `"https://www.nuget.org/api/v2`"
162- ${{ env.tools_path }}\nuget.exe restore ${{ env.fullagent_solution_path }} -NoCache -Source "https://www.nuget.org/api/v2"
163- shell : powershell
164-
165- - name : Install dependencies for MsiInstaller.sln
166- run : |
167- Write-Host ${{ env.tools_path }}\nuget.exe restore ${{ env.msi_solution_path }} -NoCache -Source `"https://www.nuget.org/api/v2`"
168- ${{ env.tools_path }}\nuget.exe restore ${{ env.msi_solution_path }} -NoCache -Source "https://www.nuget.org/api/v2"
169- shell : powershell
170-
152+
171153 - name : Build FullAgent.sln
172154 run : |
173- Write-Host "MSBuild.exe -m -p:Configuration=Release -p:AllowUnsafeBlocks=true ${{ env.fullagent_solution_path }}"
174- MSBuild.exe -m -p:Configuration=Release -p:AllowUnsafeBlocks=true ${{ env.fullagent_solution_path }}
155+ Write-Host "MSBuild.exe -restore - m -p:Configuration=Release -p:AllowUnsafeBlocks=true ${{ env.fullagent_solution_path }}"
156+ MSBuild.exe -restore - m -p:Configuration=Release -p:AllowUnsafeBlocks=true ${{ env.fullagent_solution_path }}
175157 shell : powershell
176158
177159 - name : Create agent_version.txt
@@ -232,22 +214,22 @@ jobs:
232214 shell : powershell
233215
234216 - name : Create Self-signed code signing cert
235- if : ${{ github.event. pull_request || github.event.workflow_dispatch }}
217+ if : github.event_name == ' pull_request' || github.event_name == 'workflow_dispatch'
236218 run : |
237219 Write-Host "New-SelfSignedCertificate -DnsName "Self-signed code signing cert" -Type CodeSigning -CertStoreLocation Cert:\CurrentUser\My -NotAfter (Get-Date).AddYears(100)"
238220 New-SelfSignedCertificate -DnsName "Self-signed code signing cert" -Type CodeSigning -CertStoreLocation Cert:\CurrentUser\My -NotAfter (Get-Date).AddYears(100)
239221 shell : powershell
240222
241223 - name : Build MsiInstaller.sln x86
242224 run : |
243- Write-Host "MSBuild.exe -m -p:Configuration=Release -p:AllowUnsafeBlocks=true -p:Platform=x86 ${{ env.msi_solution_path }}"
244- MSBuild.exe -m -p:Configuration=Release -p:AllowUnsafeBlocks=true -p:Platform=x86 ${{ env.msi_solution_path }}
225+ Write-Host "MSBuild.exe -restore - m -p:Configuration=Release -p:AllowUnsafeBlocks=true -p:Platform=x86 ${{ env.msi_solution_path }}"
226+ MSBuild.exe -restore - m -p:Configuration=Release -p:AllowUnsafeBlocks=true -p:Platform=x86 ${{ env.msi_solution_path }}
245227 shell : powershell
246228
247229 - name : Build MsiInstaller.sln x64
248230 run : |
249- Write-Host "MSBuild.exe -m -p:Configuration=Release -p:AllowUnsafeBlocks=true -p:Platform=x64 ${{ env.msi_solution_path }}"
250- MSBuild.exe -m -p:Configuration=Release -p:AllowUnsafeBlocks=true -p:Platform=x64 ${{ env.msi_solution_path }}
231+ Write-Host "MSBuild.exe -restore - m -p:Configuration=Release -p:AllowUnsafeBlocks=true -p:Platform=x64 ${{ env.msi_solution_path }}"
232+ MSBuild.exe -restore - m -p:Configuration=Release -p:AllowUnsafeBlocks=true -p:Platform=x64 ${{ env.msi_solution_path }}
251233 shell : powershell
252234
253235 - name : Archive _build Artifacts
@@ -336,16 +318,10 @@ jobs:
336318 - name : Add msbuild to PATH
337319 uses : microsoft/setup-msbuild@v1
338320
339- - name : Install dependencies for IntegrationTests.sln
340- run : |
341- Write-Host ${{ env.tools_path }}\nuget.exe restore ${{ env.integration_solution_path }} -NoCache -Source `"https://www.nuget.org/api/v2`"
342- ${{ env.tools_path }}\nuget.exe restore ${{ env.integration_solution_path }} -NoCache -Source "https://www.nuget.org/api/v2"
343- shell : powershell
344-
345321 - name : Build IntegrationTests.sln
346322 run : |
347- Write-Host "MSBuild.exe -m -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=LocalDeploy ${{ env.integration_solution_path }}"
348- MSBuild.exe -m -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=LocalDeploy ${{ env.integration_solution_path }}
323+ Write-Host "MSBuild.exe -restore - m -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=LocalDeploy ${{ env.integration_solution_path }}"
324+ MSBuild.exe -restore - m -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=LocalDeploy ${{ env.integration_solution_path }}
349325 shell : powershell
350326
351327 - name : Archive Artifacts
@@ -376,16 +352,10 @@ jobs:
376352 - name : Add msbuild to PATH
377353 uses : microsoft/setup-msbuild@v1
378354
379- - name : Install dependencies for UnboundedIntegrationTests.sln
380- run : |
381- Write-Host ${{ env.tools_path }}\nuget.exe restore ${{ env.unbounded_solution_path }} -NoCache -Source `"https://www.nuget.org/api/v2`"
382- ${{ env.tools_path }}\nuget.exe restore ${{ env.unbounded_solution_path }} -NoCache -Source "https://www.nuget.org/api/v2"
383- shell : powershell
384-
385355 - name : Build UnboundedIntegrationTests.sln
386356 run : |
387- Write-Host "MSBuild.exe -m -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=LocalDeploy ${{ env.unbounded_solution_path }}"
388- MSBuild.exe -m -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=LocalDeploy ${{ env.unbounded_solution_path }}
357+ Write-Host "MSBuild.exe -restore - m -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=LocalDeploy ${{ env.unbounded_solution_path }}"
358+ MSBuild.exe -restore - m -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=LocalDeploy ${{ env.unbounded_solution_path }}
389359 shell : powershell
390360
391361 - name : Archive Artifacts
@@ -416,16 +386,10 @@ jobs:
416386 - name : Add msbuild to PATH
417387 uses : microsoft/setup-msbuild@v1
418388
419- - name : Install dependencies for PlatformTests.sln
420- run : |
421- Write-Host ${{ env.tools_path }}\nuget.exe restore ${{ env.platform_solution_path }} -NoCache -Source `"https://www.nuget.org/api/v2`"
422- ${{ env.tools_path }}\nuget.exe restore ${{ env.platform_solution_path }} -NoCache -Source "https://www.nuget.org/api/v2"
423- shell : powershell
424-
425389 - name : Build PlatformTests.sln
426390 run : |
427- Write-Host "MSBuild.exe -m -p:Configuration=Release ${{ env.platform_solution_path }}"
428- MSBuild.exe -m -p:Configuration=Release ${{ env.platform_solution_path }}
391+ Write-Host "MSBuild.exe -restore - m -p:Configuration=Release ${{ env.platform_solution_path }}"
392+ MSBuild.exe -restore - m -p:Configuration=Release ${{ env.platform_solution_path }}
429393 shell : powershell
430394
431395 run-integration-tests :
0 commit comments