mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
.circleci: Add option to not run build workflow (#50162)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/50162 Adds an option to not run the build workflow when the `run_build` parameter is set to false Should reduce the amount of double workflows that are run by pytorch-probot Uses functionality introduced in https://github.com/pytorch/pytorch-probot/pull/18 Signed-off-by: Eli Uriegas <eliuriegas@fb.com> Test Plan: Imported from OSS Reviewed By: yns88 Differential Revision: D25812971 Pulled By: seemethere fbshipit-source-id: 4832170f6abcabe3f385f47a663d148b0cfe2a28
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3270e661c3
commit
dc41d17655
@ -11,6 +11,9 @@ parameters:
|
||||
run_binary_tests:
|
||||
type: boolean
|
||||
default: false
|
||||
run_build:
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
docker_config_defaults: &docker_config_defaults
|
||||
user: jenkins
|
||||
@ -9762,6 +9765,7 @@ workflows:
|
||||
only:
|
||||
- postnightly
|
||||
executor: windows-with-nvidia-gpu
|
||||
when: << pipeline.parameters.run_build >>
|
||||
ecr_gc:
|
||||
triggers:
|
||||
- schedule:
|
||||
|
@ -112,7 +112,10 @@ def gen_build_workflows_tree():
|
||||
"when": r"<< pipeline.parameters.run_binary_tests >>",
|
||||
"jobs": [f() for f in binary_build_functions],
|
||||
},
|
||||
"build": {"jobs": [f() for f in build_workflows_functions]},
|
||||
"build": {
|
||||
"when": r"<< pipeline.parameters.run_build >>",
|
||||
"jobs": [f() for f in build_workflows_functions]
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11,6 +11,9 @@ parameters:
|
||||
run_binary_tests:
|
||||
type: boolean
|
||||
default: false
|
||||
run_build:
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
docker_config_defaults: &docker_config_defaults
|
||||
user: jenkins
|
||||
|
2
.github/pytorch-circleci-labels.yml
vendored
2
.github/pytorch-circleci-labels.yml
vendored
@ -9,3 +9,5 @@ labels_to_circle_params:
|
||||
- release/.*
|
||||
tags:
|
||||
- v[0-9]+(\.[0-9]+)*-rc[0-9]+
|
||||
set_to_false:
|
||||
- run_build
|
||||
|
Reference in New Issue
Block a user