File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 63
63
- name : build-apks+java-test+firebase-test-lab
64
64
env :
65
65
matrix :
66
- PLUGIN_SHARDING : " --shardIndex 0 --shardCount 2"
67
- PLUGIN_SHARDING : " --shardIndex 1 --shardCount 2"
66
+ PLUGIN_SHARDING : " --shardIndex 0 --shardCount 4"
67
+ PLUGIN_SHARDING : " --shardIndex 1 --shardCount 4"
68
+ PLUGIN_SHARDING : " --shardIndex 2 --shardCount 4"
69
+ PLUGIN_SHARDING : " --shardIndex 3 --shardCount 4"
68
70
matrix :
69
71
CHANNEL : " master"
70
72
CHANNEL : " stable"
Original file line number Diff line number Diff line change @@ -29,20 +29,25 @@ elif [[ "${ACTIONS[@]}" == "analyze" ]]; then
29
29
fi
30
30
31
31
BRANCH_NAME=" ${BRANCH_NAME:- " $( git rev-parse --abbrev-ref HEAD) " } "
32
+
33
+ # This has to be turned into a list and then split out to the command line,
34
+ # otherwise it gets treated as a single argument.
35
+ PLUGIN_SHARDING=($PLUGIN_SHARDING )
36
+
32
37
if [[ " ${BRANCH_NAME} " == " master" ]]; then
33
38
echo " Running for all packages"
34
- (cd " $REPO_DIR " && pub global run flutter_plugin_tools " ${ACTIONS[@]} " $PLUGIN_SHARDING )
39
+ (cd " $REPO_DIR " && pub global run flutter_plugin_tools " ${ACTIONS[@]} " ${ PLUGIN_SHARDING[@]} )
35
40
else
36
41
# Sets CHANGED_PACKAGES
37
42
check_changed_packages
38
43
39
44
if [[ " $CHANGED_PACKAGES " == " " ]]; then
40
45
echo " No changes detected in packages."
41
46
echo " Running for all packages"
42
- (cd " $REPO_DIR " && pub global run flutter_plugin_tools " ${ACTIONS[@]} " $PLUGIN_SHARDING )
47
+ (cd " $REPO_DIR " && pub global run flutter_plugin_tools " ${ACTIONS[@]} " ${ PLUGIN_SHARDING[@]} )
43
48
else
44
49
echo running " ${ACTIONS[@]} "
45
- (cd " $REPO_DIR " && pub global run flutter_plugin_tools " ${ACTIONS[@]} " --plugins=" $CHANGED_PACKAGES " $PLUGIN_SHARDING )
50
+ (cd " $REPO_DIR " && pub global run flutter_plugin_tools " ${ACTIONS[@]} " --plugins=" $CHANGED_PACKAGES " ${ PLUGIN_SHARDING[@]} )
46
51
echo " Running version check for changed packages"
47
52
(cd " $REPO_DIR " && pub global run flutter_plugin_tools version-check --base_sha=" $( get_branch_base_sha) " )
48
53
fi
You can’t perform that action at this time.
0 commit comments