1
0
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:
Alex Hornby
2021-12-01 12:22:53 -08:00
committed by Facebook GitHub Bot
parent b0c8adf4b5
commit 7fb98d95db

View File

@@ -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):