From 66844e38d24ae6b87b3ceb2416fc2ea6289a5467 Mon Sep 17 00:00:00 2001 From: godofredoc Date: Fri, 17 Feb 2023 15:11:20 -0800 Subject: [PATCH] Integrate ios_engine debug, profile and release. (flutter/engine#39724) * Integrate ios_engine debug, profile and release. This provides greater reusability of subbuilds saving an approximate of 6 bots per run. * Change xcframework names. --- .../flutter/ci/builders/mac_ios_engine.json | 126 +++++++++++++++++- 1 file changed, 125 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/ci/builders/mac_ios_engine.json b/engine/src/flutter/ci/builders/mac_ios_engine.json index 9ae1f41b81..0fb4d33a65 100644 --- a/engine/src/flutter/ci/builders/mac_ios_engine.json +++ b/engine/src/flutter/ci/builders/mac_ios_engine.json @@ -69,13 +69,57 @@ ] }, "tests": [] + }, + { + "archives": [], + "drone_dimensions": [ + "device_type=none", + "mac_model=Macmini8,1", + "os=Mac-12" + ], + "gn": [ + "--ios", + "--runtime-mode", + "profile" + ], + "name": "ios_profile", + "ninja": { + "config": "ios_profile", + "targets": [ + "flutter/shell/platform/darwin/ios:flutter_framework", + "flutter/lib/snapshot:generate_snapshot_bin" + ] + }, + "tests": [] + }, + { + "archives": [], + "drone_dimensions": [ + "device_type=none", + "mac_model=Macmini8,1", + "os=Mac-12" + ], + "gn": [ + "--ios", + "--runtime-mode", + "release" + ], + "name": "ios_release", + "ninja": { + "config": "ios_release", + "targets": [ + "flutter/shell/platform/darwin/ios:flutter_framework", + "flutter/lib/snapshot:generate_snapshot_bin" + ] + }, + "tests": [] } ], "tests": [], "generators": { "tasks": [ { - "name": "Debug-FlutterMacOS.framework", + "name": "Debug-ios-Flutter.xcframework", "parameters": [ "--dst", "out/debug", @@ -89,12 +133,72 @@ "script": "flutter/sky/tools/create_full_ios_framework.py", "language": "python3" }, + { + "name": "Profile-ios-Flutter.xcframework", + "parameters": [ + "--dst", + "out/profile", + "--arm64-out-dir", + "out/ios_profile", + "--simulator-x64-out-dir", + "out/ios_debug_sim", + "--simulator-arm64-out-dir", + "out/ios_debug_sim_arm64" + ], + "script": "flutter/sky/tools/create_full_ios_framework.py", + "language": "python3" + }, { "name": "obj-c-doc", "parameters": [ "out/debug" ], "script": "flutter/tools/gen_objcdoc.sh" + }, + { + "name": "Release-ios-Flutter.xcframework", + "parameters": [ + "--dst", + "out/release", + "--arm64-out-dir", + "out/ios_release", + "--simulator-x64-out-dir", + "out/ios_debug_sim", + "--simulator-arm64-out-dir", + "out/ios_debug_sim_arm64", + "--dsym", + "--strip" + ], + "script": "flutter/sky/tools/create_full_ios_framework.py", + "language": "python3" + }, + { + "name": "release-nobitcode-FlutterMacOS.framework", + "parameters": [ + "--dst", + "out/release-nobitcode", + "--arm64-out-dir", + "out/ios_release", + "--simulator-x64-out-dir", + "out/ios_debug_sim", + "--simulator-arm64-out-dir", + "out/ios_debug_sim_arm64", + "--dsym", + "--strip" + ], + "script": "flutter/sky/tools/create_full_ios_framework.py", + "language": "python3" + }, + { + "name": "Release-macos-gen-snapshots", + "parameters": [ + "--dst", + "out/release", + "--arm64-out-dir", + "out/ios_release" + ], + "script": "flutter/sky/tools/create_macos_gen_snapshots.py", + "language": "python3" } ] }, @@ -103,9 +207,29 @@ "source": "out/debug/artifacts.zip", "destination": "ios/artifacts.zip" }, + { + "source": "out/profile/artifacts.zip", + "destination": "ios-profile/artifacts.zip" + }, { "source": "out/debug/ios-objcdoc.zip", "destination": "ios-objcdoc.zip" + }, + { + "source": "out/release/artifacts.zip", + "destination": "ios-release/artifacts.zip" + }, + { + "source": "out/release/Flutter.dSYM.zip", + "destination": "ios-release/Flutter.dSYM.zip" + }, + { + "source": "out/release-nobitcode/artifacts.zip", + "destination": "ios-release-nobitcode/artifacts.zip" + }, + { + "source": "out/release-nobitcode/Flutter.dSYM.zip", + "destination": "ios-release-nobitcode/Flutter.dSYM.zip" } ] }