mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-07 07:02:53 +03:00
add os type filtering to generate-github-actions
Summary: Hand to do just one Reviewed By: zpao Differential Revision: D32693529 fbshipit-source-id: ac27c79f8a43c540e3b0836eba3a40bd61dd725b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b0c8adf4b5
commit
7fb98d95db
@@ -786,6 +786,8 @@ class GenerateGitHubActionsCmd(ProjectCmdBase):
|
||||
]
|
||||
|
||||
for p in platforms:
|
||||
if args.os_types and p.ostype not in args.os_types:
|
||||
continue
|
||||
self.write_job_for_platform(p, args)
|
||||
|
||||
def get_run_on(self, args):
|
||||
@@ -959,6 +961,14 @@ jobs:
|
||||
default="main",
|
||||
help="Main branch to trigger GitHub Action on",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--os-type",
|
||||
help="Filter to just this OS type to run",
|
||||
choices=["linux", "darwin", "windows"],
|
||||
action="append",
|
||||
dest="os_types",
|
||||
default=[],
|
||||
)
|
||||
|
||||
|
||||
def get_arg_var_name(args):
|
||||
|
Reference in New Issue
Block a user