File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ def parse_args():
62
62
parser .add_argument ("--debug" ,
63
63
help = 'Build Swift in debug mode' ,
64
64
action = 'store_true' )
65
+ parser .add_argument ("--filter-by-tag" ,
66
+ metavar = 'TAG' ,
67
+ help = 'Only run project actions with the given tag' )
65
68
parser .add_argument ("--test" ,
66
69
help = 'Only run test actions' ,
67
70
action = 'store_true' )
@@ -162,6 +165,8 @@ def execute_runner(workspace, args):
162
165
swiftc_path = get_swiftc_path (workspace , args .swiftc )
163
166
if args .test :
164
167
action_filter = 'action.startswith("TestSwiftPackage")'
168
+ elif args .filter_by_tag :
169
+ action_filter = '"tags" in locals() and "{}" in tags.split()' .format (args .filter_by_tag )
165
170
else :
166
171
action_filter = 'action.startswith("Build")'
167
172
runner_command = [
You can’t perform that action at this time.
0 commit comments