azure-sdk-for-cpp/eng/pipelines/daily-verification.yml
2025-06-24 15:03:09 -07:00

59 lines
2.1 KiB
YAML

jobs:
- job:
displayName: Daily vcpkg PR
pool:
name: $(WINDOWSPOOL)
demands: ImageOverride -equals $(WINDOWSVMIMAGE)
variables:
# The branch in the azure-sdk/vcpkg repo that is updated daily with the
# latest set of ports
- name: TargetPrBranch
value: release/azure-sdk-for-cpp-daily-verification
- template: /eng/pipelines/templates/variables/image.yml
steps:
- checkout: self
- template: /eng/pipelines/templates/steps/generate-daily-branch-name.yml
- template: /eng/pipelines/templates/steps/vcpkg-clone.yml
parameters:
Workspace: $(Pipeline.Workspace)
RepoOwner: azure-sdk
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml
parameters:
WorkingDirectory: $(Pipeline.Workspace)/vcpkg
- pwsh: |
Write-Host "git checkout $(DailyBranchName)"
git checkout $(DailyBranchName)
if ($LASTEXITCODE -ne 0) {
Write-Error "Cannot check out $(DailyBranchName) LASTEXITCODE=$LASTEXITCODE"
}
Write-Host "##vso[task.setvariable variable=HasChanges]$true"
workingDirectory: $(Pipeline.Workspace)/vcpkg
displayName: Update vcpkg Daily Branch
# This step will skip creating the PR if the PR already exists
- template: /eng/common/pipelines/templates/steps/create-pull-request.yml
parameters:
# Force push so this recreates the $(TargetPrBranch)
PushArgs: --force
BaseBranchName: $(DefaultBranch)
PRBranchName: $(TargetPrBranch)
RepoOwner: Microsoft
RepoName: vcpkg
WorkingDirectory: $(Pipeline.Workspace)/vcpkg
CommitMsg: Update with changes from $(DailyBranchName)
PRTitle: "[DO NOT MERGE] Daily Azure SDK for C++ CI validation"
PRBody: This is a long-lived draft PR should not be merged. Its branch is be updated periodically to validate the Azure SDK for C++ against the vcpkg CI.
ScriptDirectory: $(System.DefaultWorkingDirectory)/eng/common/scripts
OpenAsDraft: true
SkipCheckingForChanges: true