Skip to content

Commit d05f917

Browse files
keyonghanAdam Harwood
authored and
Adam Harwood
committed
Enable Mac build_all_plugins (flutter#6671)
* general build_all_plugins * add separate macos * add arg for windows * add targets * udpate version file * platform & build_mode args * map docs from cirrus
1 parent 36727de commit d05f917

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

.ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ platform_properties:
3939

4040

4141
targets:
42+
### iOS+macOS tasks ***
4243
# TODO(stuartmorgan): Move this to ARM once google_maps_flutter has ARM
4344
# support. `pod lint` makes a synthetic target that doesn't respect the
4445
# pod's arch exclusions, so fails to build.
@@ -51,6 +52,29 @@ targets:
5152
version_file: flutter_master.version
5253
target_file: mac_lint_podspecs.yaml
5354

55+
### macOS desktop tasks ###
56+
# macos-platform_tests builds all the plugins on M1, so this build is run
57+
# on Intel to give us build coverage of both host types.
58+
- name: Mac_x64 build_all_plugins master
59+
recipe: plugins/plugins
60+
bringup: true # New target: https://github.com/flutter/plugins/pull/6671
61+
timeout: 30
62+
properties:
63+
add_recipes_cq: "true"
64+
version_file: flutter_master.version
65+
target_file: mac_build_all_plugins.yaml
66+
channel: master
67+
68+
- name: Mac_x64 build_all_plugins stable
69+
recipe: plugins/plugins
70+
bringup: true # New target: https://github.com/flutter/plugins/pull/6671
71+
timeout: 30
72+
properties:
73+
add_recipes_cq: "true"
74+
version_file: flutter_stable.version
75+
target_file: mac_build_all_plugins.yaml
76+
channel: stable
77+
5478
- name: Windows win32-platform_tests master
5579
recipe: plugins/plugins
5680
timeout: 30

.ci/scripts/build_all_plugins.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.
55

6+
platform="$1"
7+
build_mode="$2"
68
cd all_packages
7-
flutter build windows --debug
8-
flutter build windows --release
9+
flutter build "$platform" --"$build_mode"

.ci/targets/build_all_plugins.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ tasks:
33
script: .ci/scripts/prepare_tool.sh
44
- name: create all_plugins app
55
script: .ci/scripts/create_all_plugins_app.sh
6-
- name: build all_plugins
6+
- name: build all_plugins debug
77
script: .ci/scripts/build_all_plugins.sh
8+
args: ["windows", "debug"]
9+
- name: build all_plugins release
10+
script: .ci/scripts/build_all_plugins.sh
11+
args: ["windows", "release"]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
tasks:
2+
- name: prepare tool
3+
script: .ci/scripts/prepare_tool.sh
4+
- name: create all_plugins app
5+
script: .ci/scripts/create_all_plugins_app.sh
6+
- name: build all_plugins debug
7+
script: .ci/scripts/build_all_plugins.sh
8+
args: ["macos", "debug"]
9+
- name: build all_plugins release
10+
script: .ci/scripts/build_all_plugins.sh
11+
args: ["macos", "release"]

0 commit comments

Comments
 (0)