From d05f917f4794f29d7cd5a0d860a995150eb3766f Mon Sep 17 00:00:00 2001 From: keyonghan <54558023+keyonghan@users.noreply.github.com> Date: Wed, 9 Nov 2022 10:27:13 -0800 Subject: [PATCH] Enable `Mac build_all_plugins` (#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 --- .ci.yaml | 24 ++++++++++++++++++++++++ .ci/scripts/build_all_plugins.sh | 5 +++-- .ci/targets/build_all_plugins.yaml | 6 +++++- .ci/targets/mac_build_all_plugins.yaml | 11 +++++++++++ 4 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 .ci/targets/mac_build_all_plugins.yaml diff --git a/.ci.yaml b/.ci.yaml index 18525998967e..e48175acc6a2 100644 --- a/.ci.yaml +++ b/.ci.yaml @@ -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. @@ -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 diff --git a/.ci/scripts/build_all_plugins.sh b/.ci/scripts/build_all_plugins.sh index 734194615673..89dab629fd52 100644 --- a/.ci/scripts/build_all_plugins.sh +++ b/.ci/scripts/build_all_plugins.sh @@ -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" diff --git a/.ci/targets/build_all_plugins.yaml b/.ci/targets/build_all_plugins.yaml index b51a5b18dfd9..0ffbdfcce376 100644 --- a/.ci/targets/build_all_plugins.yaml +++ b/.ci/targets/build_all_plugins.yaml @@ -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"] diff --git a/.ci/targets/mac_build_all_plugins.yaml b/.ci/targets/mac_build_all_plugins.yaml new file mode 100644 index 000000000000..4dd324e8b3f0 --- /dev/null +++ b/.ci/targets/mac_build_all_plugins.yaml @@ -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"]