2020-04-21 17:12:21 -07:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
#
|
|
|
|
variables:
|
2023-08-07 21:22:34 -07:00
|
|
|
linux-pool: 'PrLin-1ES-Pool'
|
2024-03-18 13:26:24 -07:00
|
|
|
windows-pool: 'PrWin-1ES'
|
2024-01-25 10:50:32 -08:00
|
|
|
osx-pool: 'PrOsx-2024-01-18'
|
|
|
|
osx-arm64-pool: 'PrOsx-2024-01-22-arm64'
|
2024-04-25 18:25:03 -07:00
|
|
|
linux-docker-image: 'vcpkgandroidwus3.azurecr.io/vcpkg-android:2024-04-11'
|
2020-06-11 11:13:09 -07:00
|
|
|
|
2022-05-23 13:33:58 -07:00
|
|
|
parameters:
|
|
|
|
- name: vcpkgToolSha
|
|
|
|
displayName: 'Custom SHA of vcpkg-tool to use rather than bootstrap'
|
|
|
|
type: string
|
|
|
|
default: 'use default'
|
2023-02-24 20:32:02 +01:00
|
|
|
- name: tripletPattern
|
|
|
|
displayName: 'Enable triplets which contain this substring'
|
|
|
|
type: string
|
2023-03-21 12:27:26 -07:00
|
|
|
default: '-'
|
2022-05-23 13:33:58 -07:00
|
|
|
|
2021-09-28 13:51:42 -07:00
|
|
|
jobs:
|
2024-04-25 18:25:03 -07:00
|
|
|
- job: mintsas
|
|
|
|
displayName: 'Mint SAS token for Asset and Binary Caches'
|
|
|
|
pool:
|
|
|
|
name: PrToken-1ES
|
|
|
|
steps:
|
|
|
|
- checkout: none
|
|
|
|
- script: |
|
|
|
|
az login --identity --username a81b4cd3-9d8d-4cb9-9a74-f2038f24f224
|
|
|
|
end=`date -u -d "2 days" '+%Y-%m-%dT%H:%MZ'`
|
|
|
|
echo Minting SAS tokens valid through $end
|
|
|
|
echo "##vso[task.setvariable variable=X_VCPKG_ASSET_SOURCES;isSecret=true;isOutput=true;isreadonly=true]x-azurl,https://vcpkgassetcachewus3.blob.core.windows.net/cache,`az storage container generate-sas --name cache --account-name vcpkgassetcachewus3 --as-user --auth-mode login --https-only --permissions rcl --expiry $end -o tsv`,readwrite"
|
|
|
|
echo "##vso[task.setvariable variable=X_VCPKG_BINARY_SOURCE_STUB;isSecret=true;isOutput=true;isreadonly=true]x-azblob,https://vcpkgbinarycachewus3.blob.core.windows.net/cache,`az storage container generate-sas --name cache --account-name vcpkgbinarycachewus3 --as-user --auth-mode login --https-only --permissions rclw --expiry $end -o tsv`"
|
|
|
|
name: mintsasstep
|
|
|
|
displayName: 'Mint Tokens'
|
|
|
|
|
2021-09-28 13:51:42 -07:00
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x86_windows
|
|
|
|
poolName: $(windows-pool)
|
2022-05-23 13:33:58 -07:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-24 20:32:02 +01:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-28 13:51:42 -07:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x64_windows
|
|
|
|
poolName: $(windows-pool)
|
2022-05-23 13:33:58 -07:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-24 20:32:02 +01:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-28 13:51:42 -07:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x64_windows_static
|
|
|
|
poolName: $(windows-pool)
|
2022-05-23 13:33:58 -07:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-24 20:32:02 +01:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-28 13:51:42 -07:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x64_windows_static_md
|
|
|
|
poolName: $(windows-pool)
|
2022-05-23 13:33:58 -07:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-24 20:32:02 +01:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-28 13:51:42 -07:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x64_uwp
|
|
|
|
poolName: $(windows-pool)
|
2022-05-23 13:33:58 -07:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-24 20:32:02 +01:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-28 13:51:42 -07:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: arm64_windows
|
|
|
|
poolName: $(windows-pool)
|
2022-05-23 13:33:58 -07:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-24 20:32:02 +01:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-28 13:51:42 -07:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
2023-09-15 15:01:12 -07:00
|
|
|
jobName: arm64_uwp
|
2021-09-28 13:51:42 -07:00
|
|
|
poolName: $(windows-pool)
|
2022-05-23 13:33:58 -07:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-24 20:32:02 +01:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-28 13:51:42 -07:00
|
|
|
|
2022-02-16 19:55:46 -08:00
|
|
|
- template: osx/azure-pipelines.yml
|
|
|
|
parameters:
|
2024-01-25 10:50:32 -08:00
|
|
|
jobName: x64_osx
|
2022-02-16 19:55:46 -08:00
|
|
|
poolName: $(osx-pool)
|
2022-05-23 13:33:58 -07:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-24 20:32:02 +01:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-28 13:51:42 -07:00
|
|
|
|
2024-01-25 10:50:32 -08:00
|
|
|
- template: osx/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: arm64_osx
|
|
|
|
poolName: $(osx-arm64-pool)
|
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
|
|
|
|
2021-09-28 13:51:42 -07:00
|
|
|
- template: linux/azure-pipelines.yml
|
|
|
|
parameters:
|
2024-04-25 18:25:03 -07:00
|
|
|
jobName: x64_linux
|
2021-09-28 13:51:42 -07:00
|
|
|
poolName: $(linux-pool)
|
2022-05-23 13:33:58 -07:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-24 20:32:02 +01:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2023-04-24 21:22:59 -07:00
|
|
|
|
|
|
|
- template: android/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: arm_neon_android
|
|
|
|
dockerImage: $(linux-docker-image)
|
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
|
|
|
|
|
|
|
- template: android/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x64_android
|
|
|
|
dockerImage: $(linux-docker-image)
|
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
|
|
|
|
|
|
|
- template: android/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: arm64_android
|
|
|
|
dockerImage: $(linux-docker-image)
|
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-06-20 12:12:03 -07:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|