Skip to content

Commit 2a79462

Browse files
authored
Add Fuchsia build CI presubmit steps (flutter#9736)
Since we're now auto-rolling the Fuchsia SDK into the Flutter engine repo, we should ensure we spot failures before rolling rather than after.
1 parent 67cebdb commit 2a79462

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.cirrus.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,46 @@ task:
111111
cd %ENGINE_PATH%/src
112112
python flutter/tools/gn --runtime-mode debug
113113
ninja -C out/host_debug
114+
115+
task:
116+
gke_container:
117+
image: gcr.io/flutter-cirrus/build-engine-image:latest
118+
cluster_name: build-32-cluster
119+
zone: us-central1-a
120+
namespace: default
121+
cpu: 30 # can't use all 30-cores; system pods needs cores too
122+
memory: 100Gb # similarly, can't use all 100Gb memory
123+
env:
124+
CIRRUS_WORKING_DIR: "/tmp/github_repo"
125+
ENGINE_PATH: "/tmp/clean_engine"
126+
DEPOT_TOOLS: "/tmp/depot_tools"
127+
FLUTTER_ENGINE: "/tmp/clean_engine/src"
128+
FRAMEWORK_PATH: "/tmp/master_framework"
129+
PATH: "$FLUTTER_ENGINE/third_party/dart/tools/sdks/dart-sdk/bin:$DEPOT_TOOLS:$PATH"
130+
depot_tools_script:
131+
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git $DEPOT_TOOLS
132+
gclient_sync_script: |
133+
mkdir -p $ENGINE_PATH/src
134+
echo 'solutions = [{"managed": False,"name": "src/flutter","url": "git@github.com:flutter/engine.git","deps_file": "DEPS", "custom_vars": {"download_android_deps" : False, "download_windows_deps" : False,},},]' > $ENGINE_PATH/.gclient
135+
cd $ENGINE_PATH/src
136+
rm -rf flutter
137+
rm -rf out
138+
mv $CIRRUS_WORKING_DIR flutter
139+
gclient sync
140+
141+
matrix:
142+
- name: build_fuchsia_debug
143+
compile_host_script: |
144+
cd $ENGINE_PATH/src
145+
./flutter/tools/gn --unoptimized --fuchsia --full-dart-sdk
146+
ninja -C out/fuchsia_debug_unopt
147+
- name: build_fuchsia_profile
148+
compile_host_script: |
149+
cd $ENGINE_PATH/src
150+
./flutter/tools/gn --runtime-mode profile --fuchsia --no-lto
151+
ninja -C out/fuchsia_profile
152+
- name: build_fuchsia_release
153+
compile_host_script: |
154+
cd $ENGINE_PATH/src
155+
./flutter/tools/gn --runtime-mode release --fuchsia --no-lto
156+
ninja -C out/fuchsia_release

0 commit comments

Comments
 (0)