Skip to content

Commit

Permalink
Enable Mac build_all_plugins (flutter#6671)
Browse files Browse the repository at this point in the history
* general build_all_plugins

* add separate macos

* add arg for windows

* add targets

* udpate version file

* platform & build_mode args

* map docs from cirrus
  • Loading branch information
keyonghan authored and Adam Harwood committed Nov 21, 2022
1 parent 36727de commit d05f917
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ platform_properties:


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

### macOS desktop tasks ###
# macos-platform_tests builds all the plugins on M1, so this build is run
# on Intel to give us build coverage of both host types.
- name: Mac_x64 build_all_plugins master
recipe: plugins/plugins
bringup: true # New target: https://github.com/flutter/plugins/pull/6671
timeout: 30
properties:
add_recipes_cq: "true"
version_file: flutter_master.version
target_file: mac_build_all_plugins.yaml
channel: master

- name: Mac_x64 build_all_plugins stable
recipe: plugins/plugins
bringup: true # New target: https://github.com/flutter/plugins/pull/6671
timeout: 30
properties:
add_recipes_cq: "true"
version_file: flutter_stable.version
target_file: mac_build_all_plugins.yaml
channel: stable

- name: Windows win32-platform_tests master
recipe: plugins/plugins
timeout: 30
Expand Down
5 changes: 3 additions & 2 deletions .ci/scripts/build_all_plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

platform="$1"
build_mode="$2"
cd all_packages
flutter build windows --debug
flutter build windows --release
flutter build "$platform" --"$build_mode"
6 changes: 5 additions & 1 deletion .ci/targets/build_all_plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ tasks:
script: .ci/scripts/prepare_tool.sh
- name: create all_plugins app
script: .ci/scripts/create_all_plugins_app.sh
- name: build all_plugins
- name: build all_plugins debug
script: .ci/scripts/build_all_plugins.sh
args: ["windows", "debug"]
- name: build all_plugins release
script: .ci/scripts/build_all_plugins.sh
args: ["windows", "release"]
11 changes: 11 additions & 0 deletions .ci/targets/mac_build_all_plugins.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tasks:
- name: prepare tool
script: .ci/scripts/prepare_tool.sh
- name: create all_plugins app
script: .ci/scripts/create_all_plugins_app.sh
- name: build all_plugins debug
script: .ci/scripts/build_all_plugins.sh
args: ["macos", "debug"]
- name: build all_plugins release
script: .ci/scripts/build_all_plugins.sh
args: ["macos", "release"]

0 comments on commit d05f917

Please sign in to comment.