Skip to content

Commit 4a570ae

Browse files
committed
Add x64 release (#13)
flutter-tizen/flutter-tizen#554 Added x64 artifacts for x64 emulator support (Currently, x64 Release mode is only supported on Linux hosts.)
1 parent 38b37a7 commit 4a570ae

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
arch: [arm, arm64, x86]
15+
arch: [arm, arm64, x86, x64]
1616
mode: [debug, release, profile]
1717
include:
1818
- arch: arm
@@ -21,6 +21,8 @@ jobs:
2121
triple: aarch64-linux-gnu
2222
- arch: x86
2323
triple: i686-linux-gnu
24+
- arch: x64
25+
triple: x86_64-linux-gnu
2426
exclude:
2527
- arch: x86
2628
mode: release
@@ -58,6 +60,7 @@ jobs:
5860
run: flutter/engine/src/flutter/ci/tizen/generate_sysroot.py --out /tizen_tools/sysroot
5961

6062
- name: Build
63+
if: ${{ matrix.arch != 'x64' }}
6164
run: |
6265
cd flutter
6366
# Ignore unsupported linker option.
@@ -78,12 +81,37 @@ jobs:
7881
ninja -C out/build flutter_engine_library
7982
cp -f flutter/third_party/icu/flutter/icudtl.dat out/build
8083
84+
- name: Build(x64)
85+
if: ${{ matrix.arch == 'x64' }}
86+
run: |
87+
cd flutter
88+
89+
engine/src/flutter/tools/gn \
90+
--target-os linux \
91+
--linux-cpu ${{ matrix.arch }} \
92+
--no-goma \
93+
--target-triple ${{ matrix.triple }} \
94+
--runtime-mode ${{ matrix.mode }} \
95+
--enable-fontconfig \
96+
--disable-desktop-embeddings \
97+
--target-dir build
98+
99+
cd engine/src
100+
ninja -C out/build flutter_engine_library
101+
cp -f flutter/third_party/icu/flutter/icudtl.dat out/build
102+
81103
- name: Build gen_snapshot
82-
if: ${{ matrix.mode != 'debug' }}
104+
if: ${{ matrix.mode != 'debug' && matrix.arch != 'x64'}}
83105
run: |
84106
cd flutter
85107
ninja -C engine/src/out/build clang_x64/gen_snapshot
86108
109+
- name: Build gen_snapshot(x64)
110+
if: ${{ matrix.mode != 'debug' && matrix.arch == 'x64'}}
111+
run: |
112+
cd flutter
113+
ninja -C engine/src/out/build gen_snapshot
114+
87115
- uses: actions/upload-artifact@v4
88116
with:
89117
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}
@@ -100,14 +128,21 @@ jobs:
100128
if-no-files-found: error
101129

102130
- uses: actions/upload-artifact@v4
103-
if: ${{ matrix.mode != 'debug' }}
131+
if: ${{ matrix.mode != 'debug' && matrix.arch != 'x64'}}
104132
with:
105133
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}_linux-x64
106134
path: flutter/engine/src/out/build/clang_x64/gen_snapshot
107135
if-no-files-found: error
108136

137+
- uses: actions/upload-artifact@v4
138+
if: ${{ matrix.mode != 'debug' && matrix.arch == 'x64'}}
139+
with:
140+
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}_linux-x64
141+
path: flutter/engine/src/out/build/gen_snapshot
142+
if-no-files-found: error
143+
109144
windows-build:
110-
runs-on: windows-latest
145+
runs-on: windows-2022
111146

112147
strategy:
113148
matrix:

engine/src/flutter/ci/tizen/build_llvm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ for name in ar readelf nm strip; do
4343
ln -sf llvm-$name arm-linux-gnueabi-$name
4444
ln -sf llvm-$name aarch64-linux-gnu-$name
4545
ln -sf llvm-$name i686-linux-gnu-$name
46+
ln -sf llvm-$name x86_64-linux-gnu-$name
4647
done

engine/src/flutter/testing/testing.gni

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ is_aot_test =
1414
# * is_mac: arm64 builds can run x64 binaries.
1515
# * is_fuchsia: build unittests for testing on device.
1616
declare_args() {
17-
enable_unittests = current_toolchain == host_toolchain || is_fuchsia || is_mac
17+
# Disable unit test
18+
enable_unittests = false
1819
}
1920

2021
# Creates a translation unit that defines the flutter::testing::GetFixturesPath

0 commit comments

Comments
 (0)