Skip to content

Commit 691e4c5

Browse files
committed
wip
1 parent 51d6b1a commit 691e4c5

3 files changed

Lines changed: 72 additions & 2 deletions

File tree

.github/workflows/build-and-upload-engine-artifacts.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
uses: ssciwr/doxygen-install@501e53b879da7648ab392ee226f5b90e42148449
3030
with:
3131
version: 1.14.0
32+
- name: Free disk space
33+
if: runner.os == 'Linux'
34+
run: curl -fsSL https://raw.githubusercontent.com/apache/arrow/e49d8ae15583ceff03237571569099a6ad62be32/ci/scripts/util_free_space.sh | bash
3235
- name: Set up depot_tools
3336
if: runner.os == 'Windows'
3437
run: |
@@ -48,8 +51,6 @@ jobs:
4851
- name: GClient sync
4952
run: |
5053
gclient sync -D --no-history --shallow --with_branch_heads
51-
- name: Setup tmate session
52-
uses: mxschmitt/action-tmate@v3
5354
- name: Build engine
5455
run: |
5556
cd engine/src
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
config("cpu_features_config") {
6+
cflags = [ "-Wno-unused-function" ]
7+
defines = [
8+
"STACK_LINE_READER_BUFFER_SIZE=1024",
9+
"HAVE_STRONG_GETAUXVAL",
10+
]
11+
include_dirs = [ "src/include" ]
12+
}
13+
14+
config("ndk_compat_headers") {
15+
include_dirs = [ "src/ndk_compat" ]
16+
}
17+
18+
source_set("cpuinfo") {
19+
sources = [
20+
"src/src/copy.inl",
21+
"src/src/define_introspection.inl",
22+
"src/src/define_introspection_and_hwcaps.inl",
23+
"src/src/equals.inl",
24+
"src/src/filesystem.c",
25+
"src/src/hwcaps.c",
26+
"src/src/stack_line_reader.c",
27+
"src/src/string_view.c",
28+
]
29+
if (current_cpu == "x86" || current_cpu == "x64") {
30+
sources += [
31+
"src/src/impl_x86__base_implementation.inl",
32+
"src/src/impl_x86_freebsd.c",
33+
"src/src/impl_x86_linux_or_android.c",
34+
"src/src/impl_x86_macos.c",
35+
"src/src/impl_x86_windows.c",
36+
]
37+
} else if (current_cpu == "arm") {
38+
sources += [ "src/src/impl_arm_linux_or_android.c" ]
39+
} else if (current_cpu == "arm64") {
40+
sources += [ "src/src/impl_aarch64_linux_or_android.c" ]
41+
} else if (current_cpu == "mips") {
42+
sources += [ "src/src/impl_mips_linux_or_android.c" ]
43+
} else if (current_cpu == "ppc") {
44+
sources += [ "src/src/impl_ppc_linux.c" ]
45+
} else if (current_cpu == "riscv64") {
46+
sources += [ "src/src/impl_riscv_linux.c" ]
47+
} else {
48+
error("Missing definition for architecture: $current_cpu")
49+
}
50+
configs += [ ":cpu_features_config" ]
51+
}
52+
53+
source_set("ndk_compat") {
54+
sources = [
55+
"src/ndk_compat/cpu-features.c",
56+
"src/ndk_compat/cpu-features.h",
57+
]
58+
configs += [ ":cpu_features_config" ]
59+
public_configs = [ ":ndk_compat_headers" ]
60+
deps = [ ":cpuinfo" ]
61+
}

engine/src/flutter/tools/pkg/github_workflow_generator/lib/github_workflow_generator.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,14 @@ class BuildConfigWriter {
284284
final w = step.beginMap('with');
285285
w.write('version', '1.14.0');
286286
}
287+
{
288+
final step = steps.beginMap('name', 'Free disk space');
289+
step.write('if', "runner.os == 'Linux'");
290+
step.write(
291+
'run',
292+
'curl -fsSL https://raw.githubusercontent.com/apache/arrow/e49d8ae15583ceff03237571569099a6ad62be32/ci/scripts/util_free_space.sh | bash',
293+
);
294+
}
287295
{
288296
final step = steps.beginMap('name', 'Set up depot_tools');
289297
step.write('if', "runner.os == 'Windows'");

0 commit comments

Comments
 (0)