Skip to content

wip

wip #12

name: Test Modified Ports
on:
push:
branches:
- onboard-actions
permissions:
id-token: write
contents: read
jobs:
Windows:
runs-on:
- self-hosted
- "1ES.Pool=vcpkg-windows-wus"
env:
VCPKG_DOWNLOADS: D:\downloads
steps:
- name: Checkout
uses: actions/checkout@v4
env: # FIXME This needs to be changed to real git but that requires changing the image
PATH: c:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd;$PATH
with:
# fetch-depth 50 tries to ensure we capture the whole history of the branch
fetch-depth: 50
- name: Azure Login
uses: azure/login@v2
with:
client-id: a81b4cd3-9d8d-4cb9-9a74-f2038f24f224
subscription-id: 7fcb00fa-a761-49de-8a2f-d67190e62882
tenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
- name: Bootstrap
run: ./scripts/bootstrap.ps1
- name: "*** Test Modified Ports"
run: | # FIXME x-block-origin
$current = Get-Date -AsUtc
$endDate = $current.AddDays(2)
$end = Get-Date -Date $endDate -UFormat '+%Y-%m-%dT%H:%MZ'
$assetSas = az storage container generate-sas --name cache --account-name vcpkgassetcachewus3 --as-user --auth-mode login --https-only --permissions rcl --expiry $end -o tsv | Out-String
$assetSas = $assetSas.Trim()
$binarySas = az storage container generate-sas --name cache --account-name vcpkgbinarycachewus --as-user --auth-mode login --https-only --permissions rclw --expiry $end -o tsv | Out-String
$binarySas = $binarySas.Trim()
$env:X_VCPKG_ASSET_SOURCES = "x-azurl,https://vcpkgassetcachewus3.blob.core.windows.net/cache,$assetSas,readwrite;x-block-origin"
& scripts/azure-pipelines/test-modified-ports.ps1 -Triplet x64-windows -BinarySourceStub "x-azblob,https://vcpkgbinarycachewus.blob.core.windows.net/cache,$binarySas" -WorkingRoot D:\ -ArtifactStagingDirectory D:\artifactstaging
- name: 'Validate version files'
run: 'scripts/azure-pipelines/windows/validate-version-files.ps1'
- name: 'Publish Artifact: failure logs for x64-windows'
uses: actions/upload-artifact@v4
with:
name: 'failure logs for x64-windows'
path: D:\artifactstaging\failure-logs
retention-days: 7
if-no-files-found: ignore
- name: 'Build a file list for all packages'
if: always()
run: |
./vcpkg.exe fetch python3
& $(.\vcpkg fetch python3) .\scripts\file_script.py D:\installed\vcpkg\info\
- name: 'Publish Artifact: file lists for x64-windows'
uses: actions/upload-artifact@v4
if: always()
with:
name: 'file lists for x64-windows'
path: scripts/list_files
# - task: PublishTestResults@2
# displayName: 'Publish Test Results'
# if: ne(variables['XML_RESULTS_FILE'], '')
# inputs:
# testRunTitle: x64-windows
# testResultsFormat: xUnit
# testResultsFiles: $(XML_RESULTS_FILE)
# platform: x64-windows
# `