mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
Add parameter to limit CI to selected triplets (#29738)
* Add parameter to limit CI to selected triplets Pull requests which analyze the situation in a particular triplet, arch or platform may temporarily limit the triplets run in CI by overriding the default value of CI parameter 'tripletPattern'. * Add special chars for start and end * Proof of concept * Revert "Proof of concept" This reverts commit 326bd2632b7c7b5d2cff157e62ca557053254b6e.
This commit is contained in:
parent
5ecaf6697f
commit
328bd79eb8
@ -11,6 +11,10 @@ parameters:
|
||||
displayName: 'Custom SHA of vcpkg-tool to use rather than bootstrap'
|
||||
type: string
|
||||
default: 'use default'
|
||||
- name: tripletPattern
|
||||
displayName: 'Enable triplets which contain this substring'
|
||||
type: string
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- template: windows/azure-pipelines.yml
|
||||
@ -19,6 +23,7 @@ jobs:
|
||||
jobName: x86_windows
|
||||
poolName: $(windows-pool)
|
||||
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
||||
tripletPattern: ${{ parameters.tripletPattern }}
|
||||
|
||||
- template: windows/azure-pipelines.yml
|
||||
parameters:
|
||||
@ -26,6 +31,7 @@ jobs:
|
||||
jobName: x64_windows
|
||||
poolName: $(windows-pool)
|
||||
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
||||
tripletPattern: ${{ parameters.tripletPattern }}
|
||||
|
||||
- template: windows/azure-pipelines.yml
|
||||
parameters:
|
||||
@ -33,6 +39,7 @@ jobs:
|
||||
jobName: x64_windows_static
|
||||
poolName: $(windows-pool)
|
||||
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
||||
tripletPattern: ${{ parameters.tripletPattern }}
|
||||
|
||||
- template: windows/azure-pipelines.yml
|
||||
parameters:
|
||||
@ -40,6 +47,7 @@ jobs:
|
||||
jobName: x64_windows_static_md
|
||||
poolName: $(windows-pool)
|
||||
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
||||
tripletPattern: ${{ parameters.tripletPattern }}
|
||||
|
||||
- template: windows/azure-pipelines.yml
|
||||
parameters:
|
||||
@ -47,6 +55,7 @@ jobs:
|
||||
jobName: x64_uwp
|
||||
poolName: $(windows-pool)
|
||||
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
||||
tripletPattern: ${{ parameters.tripletPattern }}
|
||||
|
||||
- template: windows/azure-pipelines.yml
|
||||
parameters:
|
||||
@ -54,6 +63,7 @@ jobs:
|
||||
jobName: arm64_windows
|
||||
poolName: $(windows-pool)
|
||||
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
||||
tripletPattern: ${{ parameters.tripletPattern }}
|
||||
|
||||
- template: windows/azure-pipelines.yml
|
||||
parameters:
|
||||
@ -61,13 +71,16 @@ jobs:
|
||||
jobName: arm_uwp
|
||||
poolName: $(windows-pool)
|
||||
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
||||
tripletPattern: ${{ parameters.tripletPattern }}
|
||||
|
||||
- template: osx/azure-pipelines.yml
|
||||
parameters:
|
||||
poolName: $(osx-pool)
|
||||
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
||||
tripletPattern: ${{ parameters.tripletPattern }}
|
||||
|
||||
- template: linux/azure-pipelines.yml
|
||||
parameters:
|
||||
poolName: $(linux-pool)
|
||||
vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
|
||||
tripletPattern: ${{ parameters.tripletPattern }}
|
||||
|
@ -9,9 +9,14 @@ parameters:
|
||||
default: 'use default'
|
||||
- name: poolName
|
||||
type: string
|
||||
- name: tripletPattern
|
||||
displayName: 'Enable the triplets which contain this substring'
|
||||
type: string
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- job: x64_linux
|
||||
condition: contains('^x64-linux$', '${{ parameters.tripletPattern }}')
|
||||
pool:
|
||||
name: ${{ parameters.poolName }}
|
||||
workspace:
|
||||
|
@ -9,9 +9,14 @@ parameters:
|
||||
default: 'use default'
|
||||
- name: poolName
|
||||
type: string
|
||||
- name: tripletPattern
|
||||
displayName: 'Enable the triplets which contain this substring'
|
||||
type: string
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- job: x64_osx
|
||||
condition: contains('^x64-osx$', '${{ parameters.tripletPattern }}')
|
||||
pool:
|
||||
name: ${{ parameters.poolName }}
|
||||
workspace:
|
||||
|
@ -15,9 +15,14 @@ parameters:
|
||||
default: 'x86_windows'
|
||||
- name: poolName
|
||||
type: string
|
||||
- name: tripletPattern
|
||||
displayName: 'Enable the triplets which contain this substring'
|
||||
type: string
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.jobName }}
|
||||
condition: contains('^${{ parameters.triplet }}$', '${{ parameters.tripletPattern }}')
|
||||
pool:
|
||||
name: ${{ parameters.poolName }}
|
||||
workspace:
|
||||
|
Loading…
x
Reference in New Issue
Block a user