Skip to content

Commit

Permalink
Always release to vcpkg when doing Daily Release (#4334)
Browse files Browse the repository at this point in the history
* Always release to vcpkg when doing Daily Release

* Add ability to skip live tests via variable

* Use 1ES agents instead of Azure Pipelines
  • Loading branch information
danieljurek authored Mar 6, 2023
1 parent ab7b238 commit 50589d6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/live.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ parameters:
jobs:
- job: ValidateLive
dependsOn: ${{ parameters.DependsOn }}
condition: ne(${{ parameters.Matrix }}, '{}')
condition: and(ne(variables['Skip.LiveTest'], 'true'), ne(${{ parameters.Matrix }}, '{}'))
timeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
pool:
name: $(Pool)
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/stages/platform-matrix-live.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
{
"StaticConfigs": {
"Win2022": {
"Pool": "Azure Pipelines",
"Pool": "azsdk-pool-mms-win-2022-general",
"OSVmImage": "windows-2022",
"CMAKE_GENERATOR": "Visual Studio 17 2022",
"RunProxyTests": true
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/templates/stages/platform-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"StaticConfigs": {
"Win2022": {
"OSVmImage": "windows-2022",
"Pool": "Azure Pipelines",
"Pool": "azsdk-pool-mms-win-2022-general",
"RunProxyTests": true,
"CMAKE_GENERATOR": "Visual Studio 17 2022"
}
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/steps/vcpkg-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ steps:
-ReleaseArtifactSourceDirectory "${{ parameters.Workspace }}/packages/${{ parameters.ArtifactName }}"
-VcpkgFolder ${{ parameters.Workspace }}/vcpkg
-VcpkgPortName '${{ parameters.VcpkgPortName }}'
-DailyRelease:$${{ parameters.DailyRelease }}
displayName: Check whether to release to vcpkg

- task: Powershell@2
Expand Down
9 changes: 8 additions & 1 deletion eng/scripts/Test-ShouldReleaseToVcpkg.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
param(
[string] $ReleaseArtifactSourceDirectory,
[string] $VcpkgFolder,
[string] $VcpkgPortName
[string] $VcpkgPortName,
[switch] $DailyRelease
)

."$PSSCriptRoot/../common/scripts/common.ps1"

Set-StrictMode -Version 3

if ($DailyRelease) {
Write-Host "Release is daily, publish to vcpkg"
Write-Host "##vso[task.setvariable variable=PublishToVcpkg]true"
exit 0
}

$packageJsonContents = Get-Content `
-Path "$ReleaseArtifactSourceDirectory/package-info.json" `
-Raw
Expand Down

0 comments on commit 50589d6

Please sign in to comment.