Skip to content

Commit 1d98e9a

Browse files
committed
[Tizen] Disable download fuchsia sdk
The size of fuchsia sdk has increased from 2.3G to 6.4G. As a result, a no memory error occurs in CI. So apply some of this commit. flutter@1e199ce Add the download_fuchsia_deps flag and set this flag to False in ci.
1 parent 21180fd commit 1d98e9a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Run gclient sync
4848
run: |
4949
gclient config --name=src/flutter --unmanaged https://github.com/flutter-tizen/engine
50-
gclient setdep --var=download_dart_sdk=False --var=download_android_deps=False --deps-file=src/flutter/DEPS
50+
gclient setdep --var=download_dart_sdk=False --var=download_android_deps=False --var=download_fuchsia_deps=False --deps-file=src/flutter/DEPS
5151
gclient sync -v --no-history --shallow
5252
5353
- name: Generate sysroot

DEPS

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ vars = {
106106
# Checkout Linux dependencies only when building on Linux.
107107
'download_linux_deps': 'host_os == "linux"',
108108

109+
# Checkout Fuchsia dependencies only on Linux. This is the umbrella flag which
110+
# controls the behavior of all fuchsia related flags. I.e. any fuchsia related
111+
# logic or condition may not work if this flag is False.
112+
# TODO(zijiehe): Make this condition more strict to only download fuchsia
113+
# dependencies when necessary: b/40935282
114+
'download_fuchsia_deps': 'host_os == "linux"',
115+
109116
# Downloads the fuchsia SDK as listed in fuchsia_sdk_path var. This variable
110117
# is currently only used for the Fuchsia LSC process and is not intended for
111118
# local development.
@@ -938,7 +945,7 @@ deps = {
938945
'version': 'I-3hiLjX2DDy6mu22Q51o4ktda9zg0wZWdk-QolLicoC'
939946
}
940947
],
941-
'condition': 'host_os == "linux" and not download_fuchsia_sdk',
948+
'condition': 'download_fuchsia_deps and not download_fuchsia_sdk',
942949
'dep_type': 'cipd',
943950
},
944951

@@ -1032,7 +1039,7 @@ hooks = [
10321039
{
10331040
'name': 'Download Fuchsia SDK',
10341041
'pattern': '.',
1035-
'condition': 'download_fuchsia_sdk',
1042+
'condition': 'download_fuchsia_deps and download_fuchsia_sdk',
10361043
'action': [
10371044
'python3',
10381045
'src/flutter/tools/download_fuchsia_sdk.py',

0 commit comments

Comments
 (0)