-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 21846: Remove checkout bundle
- Loading branch information
Showing
60 changed files
with
309 additions
and
371 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Template to evaluate common paths in different pipelines. | ||
parameters: | ||
extraSubsets: '' | ||
|
||
jobs: | ||
- template: /eng/pipelines/common/evaluate-paths-job.yml | ||
parameters: | ||
paths: | ||
- subset: coreclr | ||
include: | ||
- src/libraries/System.Private.CoreLib/* | ||
- src/libraries/Native/Unix/System.Globalization.Native/* | ||
- src/libraries/Native/Unix/Common/* | ||
exclude: | ||
- eng/Version.Details.xml | ||
- '*.md' | ||
- LICENSE.TXT | ||
- PATENTS.TXT | ||
- THIRD-PARTY-NOTICES.TXT | ||
- docs/* | ||
- src/installer/* | ||
- src/mono/* | ||
- src/libraries/* | ||
- eng/pipelines/installer/* | ||
- eng/pipelines/mono/* | ||
- eng/pipelines/libraries/* | ||
- subset: mono | ||
include: | ||
- src/libraries/System.Private.CoreLib/* | ||
- src/libraries/Native/Unix/System.Globalization.Native/* | ||
- src/libraries/Native/Unix/Common/* | ||
exclude: | ||
- eng/Version.Details.xml | ||
- '*.md' | ||
- LICENSE.TXT | ||
- PATENTS.TXT | ||
- THIRD-PARTY-NOTICES.TXT | ||
- docs/* | ||
- src/installer/* | ||
- src/coreclr/* | ||
- src/libraries/* | ||
- eng/pipelines/installer/* | ||
- eng/pipelines/coreclr/* | ||
- eng/pipelines/libraries/* | ||
- subset: libraries | ||
exclude: | ||
- eng/Version.Details.xml | ||
- '*.md' | ||
- LICENSE.TXT | ||
- PATENTS.TXT | ||
- THIRD-PARTY-NOTICES.TXT | ||
- docs/* | ||
- src/installer/* | ||
- src/mono/* | ||
- src/coreclr/* | ||
- eng/pipelines/coreclr/* | ||
- eng/pipelines/mono/* | ||
- eng/pipelines/installer/* | ||
- subset: runtimetests | ||
include: | ||
- src/tests/* | ||
- src/coreclr/tests/* | ||
- src/coreclr/build-test.cmd | ||
- src/coreclr/build-test.sh | ||
- subset: installer | ||
include: | ||
- docs/manpages/* | ||
exclude: | ||
- eng/Version.Details.xml | ||
- '*.md' | ||
- LICENSE.TXT | ||
- PATENTS.TXT | ||
- THIRD-PARTY-NOTICES.TXT | ||
- docs/* | ||
- src/coreclr/* | ||
- src/mono/* | ||
- src/libraries/* | ||
- eng/pipelines/coreclr/* | ||
- eng/pipelines/mono/* | ||
- eng/pipelines/libraries/* | ||
|
||
- ${{ if ne(parameters.extraSubsets, '') }}: | ||
- ${{ parameters.extraSubsets }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
### Job used to evaluate changed paths on a pull request to emit variables to condition jobs based on paths. | ||
|
||
parameters: | ||
# Object containing subset include and exclude paths in an array form. | ||
# Scenarios: | ||
# 1. exclude paths are specified | ||
# Will include all paths except the ones in the exclude list. | ||
# 2. include paths are specified | ||
# Will only include paths specified in the list. | ||
# 3. exclude + include: | ||
# 1st we evaluate changes for all paths except ones in excluded list. If we can't find | ||
# any applicable changes like that, then we evaluate changes for incldued paths | ||
# if any of these two finds changes, then a variable will be set to true. | ||
# In order to consume this variable you need to reference it via: $[ dependencies.evaluate_paths.outputs['SetPathVars_<subset>.containschange'] ] | ||
# | ||
# Array form example | ||
# paths: | ||
# - subset: coreclr | ||
# include: | ||
# - src/libraries/System.Private.CoreLib/* | ||
# exclude: | ||
# - src/libraries/* | ||
# | ||
# This example will include ALL path changes under src/libraries/ except the ones under src/libraries/*!System.Private.CoreLib/* | ||
paths: [] | ||
|
||
|
||
jobs: | ||
- job: evaluate_paths | ||
displayName: Evaluate Paths | ||
pool: | ||
vmImage: 'macOS-10.15' | ||
|
||
steps: | ||
- checkout: self | ||
clean: true | ||
fetchDepth: $(checkoutFetchDepth) | ||
|
||
- ${{ if ne(parameters.paths[0], '') }}: | ||
- ${{ each path in parameters.paths }}: | ||
- template: evaluate-changed-paths.yml | ||
parameters: | ||
subsetName: ${{ path.subset }} | ||
arguments: | ||
# The commit that we're building is always a merge commit that is merging into the target branch. | ||
# So the first parent of the commit is on the target branch and the second parent is on the source branch. | ||
- --difftarget HEAD^1 | ||
- --subset ${{ path.subset }} | ||
- ${{ if ne(path.include[0], '') }}: | ||
- --includepaths '${{ join('+', path.include) }}' | ||
- ${{ if ne(path.exclude[0], '') }}: | ||
- --excludepaths '${{ join('+', path.exclude) }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.