Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5a39a88

Browse files
authored
Add CI builder for windows-arm64. (#38394)
* Generate zip archives for Windows following target platform. * Add CI builder for windows-arm64. All packages can be cross compiled from an x64 machine. Unittests are disabled, as they require an arm64 machine. * Add windows-arm64 to CI.
1 parent ee0c4d2 commit 5a39a88

File tree

6 files changed

+137
-4
lines changed

6 files changed

+137
-4
lines changed

.ci.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,14 @@ targets:
510510
release_build: "true"
511511
config_name: windows_host_engine
512512

513+
- name: Windows windows_arm_host_engine
514+
bringup: true
515+
recipe: engine_v2/engine_v2
516+
timeout: 60
517+
properties:
518+
release_build: "true"
519+
config_name: windows_arm_host_engine
520+
513521
- name: Windows Unopt
514522
recipe: engine/engine_unopt
515523
properties:

build/archives/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ if (build_engine_artifacts && !flutter_prebuilt_dart_sdk) {
227227
# Archives Flutter Windows Artifacts
228228
if (host_os == "win") {
229229
zip_bundle("windows_flutter") {
230-
output = "$full_platform_name-$flutter_runtime_mode/$full_platform_name-flutter.zip"
230+
output = "$full_target_platform_name-$flutter_runtime_mode/$full_target_platform_name-flutter.zip"
231231
deps = [
232232
"//flutter/shell/platform/common:publish_headers",
233233
"//flutter/shell/platform/windows:flutter_windows",
+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"builds": [
3+
{
4+
"archives": [
5+
{
6+
"base_path": "out/host_debug_arm64/zip_archives/",
7+
"type": "gcs",
8+
"include_paths": [
9+
"out/host_debug_arm64/zip_archives/windows-arm64/artifacts.zip",
10+
"out/host_debug_arm64/zip_archives/windows-arm64/windows-arm64-embedder.zip",
11+
"out/host_debug_arm64/zip_archives/windows-arm64/font-subset.zip",
12+
"out/host_debug_arm64/zip_archives/dart-sdk-windows-arm64.zip",
13+
"out/host_debug_arm64/zip_archives/windows-arm64-debug/windows-arm64-flutter.zip",
14+
"out/host_debug_arm64/zip_archives/windows-arm64/flutter-cpp-client-wrapper.zip",
15+
"out/host_debug_arm64/zip_archives/flutter-web-sdk-windows-arm64.zip"
16+
],
17+
"name": "host_debug_arm64"
18+
}
19+
],
20+
"drone_dimensions": [
21+
"device_type=none",
22+
"os=Windows-10"
23+
],
24+
"gclient_custom_vars": {
25+
"download_android_deps": false
26+
},
27+
"gn": [
28+
"--runtime-mode",
29+
"debug",
30+
"--full-dart-sdk",
31+
"--no-lto",
32+
"--windows-cpu",
33+
"arm64"
34+
],
35+
"name": "host_debug_arm64",
36+
"ninja": {
37+
"config": "host_debug_arm64",
38+
"targets": [
39+
"flutter/build/archives:artifacts",
40+
"flutter/build/archives:embedder",
41+
"flutter/tools/font-subset",
42+
"flutter/build/archives:dart_sdk_archive",
43+
"flutter/shell/platform/windows/client_wrapper:client_wrapper_archive",
44+
"flutter/build/archives:windows_flutter",
45+
"flutter/web_sdk"
46+
]
47+
},
48+
"tests": []
49+
},
50+
{
51+
"archives": [
52+
{
53+
"base_path": "out/host_profile_arm64/zip_archives/",
54+
"type": "gcs",
55+
"include_paths": [
56+
"out/host_profile_arm64/zip_archives/windows-arm64-profile/windows-arm64-flutter.zip"
57+
],
58+
"name": "host_profile_arm64"
59+
}
60+
],
61+
"drone_dimensions": [
62+
"device_type=none",
63+
"os=Windows-10"
64+
],
65+
"gclient_custom_vars": {
66+
"download_android_deps": false
67+
},
68+
"gn": [
69+
"--runtime-mode",
70+
"profile",
71+
"--no-lto",
72+
"--windows-cpu",
73+
"arm64"
74+
],
75+
"name": "host_profile_arm64",
76+
"ninja": {
77+
"config": "host_profile_arm64",
78+
"targets": [
79+
"windows",
80+
"gen_snapshot",
81+
"flutter/build/archives:windows_flutter"
82+
]
83+
},
84+
"tests": []
85+
},
86+
{
87+
"archives": [
88+
{
89+
"base_path": "out/host_release_arm64/zip_archives/",
90+
"type": "gcs",
91+
"include_paths": [
92+
"out/host_release_arm64/zip_archives/windows-arm64-release/windows-arm64-flutter.zip"
93+
],
94+
"name": "host_profile_arm64"
95+
}
96+
],
97+
"drone_dimensions": [
98+
"device_type=none",
99+
"os=Windows-10"
100+
],
101+
"gclient_custom_vars": {
102+
"download_android_deps": false
103+
},
104+
"generators": {},
105+
"gn": [
106+
"--runtime-mode",
107+
"release",
108+
"--no-lto",
109+
"--windows-cpu",
110+
"arm64"
111+
],
112+
"name": "host_release_arm64",
113+
"ninja": {
114+
"config": "host_release_arm64",
115+
"targets": [
116+
"windows",
117+
"gen_snapshot",
118+
"flutter/build/archives:windows_flutter"
119+
]
120+
},
121+
"tests": []
122+
}
123+
]
124+
}

shell/platform/embedder/BUILD.gn

+2-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,8 @@ if (is_mac) {
530530

531531
if (host_os == "linux" || host_os == "win") {
532532
zip_bundle("embedder-archive") {
533-
output = "$full_platform_name/$full_platform_name-embedder.zip"
533+
output =
534+
"$full_target_platform_name/$full_target_platform_name-embedder.zip"
534535
deps = [
535536
"//flutter/shell/platform/embedder:copy_headers",
536537
"//flutter/shell/platform/embedder:flutter_engine_library",

shell/platform/windows/client_wrapper/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ win_client_wrapper_file_archive_list = [
113113
]
114114

115115
zip_bundle("client_wrapper_archive") {
116-
output = "$full_platform_name/flutter-cpp-client-wrapper.zip"
116+
output = "$full_target_platform_name/flutter-cpp-client-wrapper.zip"
117117
deps = [
118118
":client_wrapper_windows",
119119
":publish_wrapper_windows",

web_sdk/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ if (!is_fuchsia) {
551551
# TODO(jacksongardner): remove this once we stop making platform-specific
552552
# flutter_web_sdk archives.
553553
# https://github.com/flutter/flutter/issues/113303
554-
output = "flutter-web-sdk-${full_platform_name}.zip"
554+
output = "flutter-web-sdk-${full_target_platform_name}.zip"
555555
}
556556
deps = [
557557
":flutter_ddc_modules",

0 commit comments

Comments
 (0)