2020-04-22 08:12:21 +08:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
#
|
|
|
|
variables:
|
2024-05-25 13:22:47 +08:00
|
|
|
linux-docker-image: 'vcpkgandroidwus3.azurecr.io/vcpkg-android:2024-05-17'
|
2020-06-12 02:13:09 +08:00
|
|
|
|
2022-05-24 04:33:58 +08:00
|
|
|
parameters:
|
|
|
|
- name: vcpkgToolSha
|
|
|
|
displayName: 'Custom SHA of vcpkg-tool to use rather than bootstrap'
|
|
|
|
type: string
|
|
|
|
default: 'use default'
|
2023-02-25 03:32:02 +08:00
|
|
|
- name: tripletPattern
|
|
|
|
displayName: 'Enable triplets which contain this substring'
|
|
|
|
type: string
|
2023-03-22 03:27:26 +08:00
|
|
|
default: '-'
|
2022-05-24 04:33:58 +08:00
|
|
|
|
2021-09-29 04:51:42 +08:00
|
|
|
jobs:
|
2024-04-26 09:25:03 +08: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-29 04:51:42 +08:00
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x86_windows
|
2022-05-24 04:33:58 +08:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-25 03:32:02 +08:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-29 04:51:42 +08:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x64_windows
|
2022-05-24 04:33:58 +08:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-25 03:32:02 +08:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-29 04:51:42 +08:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x64_windows_static
|
2022-05-24 04:33:58 +08:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-25 03:32:02 +08:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-29 04:51:42 +08:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x64_windows_static_md
|
2022-05-24 04:33:58 +08:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-25 03:32:02 +08:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-29 04:51:42 +08:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: x64_uwp
|
2022-05-24 04:33:58 +08:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-25 03:32:02 +08:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-29 04:51:42 +08:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: arm64_windows
|
2022-05-24 04:33:58 +08:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-25 03:32:02 +08:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-29 04:51:42 +08:00
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
2023-09-16 06:01:12 +08:00
|
|
|
jobName: arm64_uwp
|
2022-05-24 04:33:58 +08:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-25 03:32:02 +08:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-29 04:51:42 +08:00
|
|
|
|
2022-02-17 11:55:46 +08:00
|
|
|
- template: osx/azure-pipelines.yml
|
|
|
|
parameters:
|
2024-01-26 02:50:32 +08:00
|
|
|
jobName: x64_osx
|
2024-06-05 04:35:41 +08:00
|
|
|
poolName: 'PrOsx-2024-05-20'
|
2022-05-24 04:33:58 +08:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-25 03:32:02 +08:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2021-09-29 04:51:42 +08:00
|
|
|
|
2024-01-26 02:50:32 +08:00
|
|
|
- template: osx/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
jobName: arm64_osx
|
2024-06-05 04:35:41 +08:00
|
|
|
poolName: 'PrOsx-2024-05-20-arm64'
|
2024-01-26 02:50:32 +08:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
|
|
|
|
2021-09-29 04:51:42 +08:00
|
|
|
- template: linux/azure-pipelines.yml
|
|
|
|
parameters:
|
2024-04-26 09:25:03 +08:00
|
|
|
jobName: x64_linux
|
2022-05-24 04:33:58 +08:00
|
|
|
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
2023-02-25 03:32:02 +08:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|
2023-04-25 12:22:59 +08: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-21 03:12:03 +08:00
|
|
|
tripletPattern: ${{ parameters.tripletPattern }}
|