Skip to content

Commit 3a43fb5

Browse files
authored
[ci] Add Tizen 6.0 artifacts (#62)
1 parent 6850c77 commit 3a43fb5

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
api-version: [5.5, 6.5]
11+
api-version: ['5.5', '6.0', '6.5']
1212
arch: [arm, arm64, x86]
1313
include:
1414
- arch: arm
@@ -43,21 +43,36 @@ jobs:
4343
gclient config --name=src --unmanaged https://github.com/${{ github.repository }}
4444
gclient sync -v --no-history --shallow
4545
46+
- name: Generate Tizen 6.0 sysroot
47+
if: ${{ matrix.api-version == '6.0' }}
48+
run: src/tools/generate_sysroot.py --api-version 6.0 --out src/sysroot-6.0
49+
4650
- name: Generate Tizen 6.5 sysroot
47-
if: ${{ matrix.api-version == 6.5 }}
51+
if: ${{ matrix.api-version == '6.5' }}
4852
run: src/tools/generate_sysroot.py --api-version 6.5 --out src/sysroot-6.5
4953

5054
- name: Build for Tizen 5.5
51-
if: ${{ matrix.api-version == 5.5 }}
55+
if: ${{ matrix.api-version == '5.5' }}
56+
run: |
57+
src/tools/gn \
58+
--target-cpu ${{ matrix.arch }} \
59+
--target-toolchain /usr/lib/llvm-12 \
60+
--target-dir build
61+
ninja -C src/out/build
62+
63+
- name: Build for Tizen 6.0
64+
if: ${{ matrix.api-version == '6.0' }}
5265
run: |
5366
src/tools/gn \
5467
--target-cpu ${{ matrix.arch }} \
5568
--target-toolchain /usr/lib/llvm-12 \
69+
--target-sysroot src/sysroot-6.0/${{ matrix.arch }} \
70+
--api-version 6.0 --system-cxx \
5671
--target-dir build
5772
ninja -C src/out/build
5873
5974
- name: Build for Tizen 6.5
60-
if: ${{ matrix.api-version == 6.5 }}
75+
if: ${{ matrix.api-version == '6.5' }}
6176
run: |
6277
src/tools/gn \
6378
--target-cpu ${{ matrix.arch }} \
@@ -87,7 +102,7 @@ jobs:
87102
if-no-files-found: error
88103

89104
- uses: actions/upload-artifact@v4
90-
if: ${{ matrix.arch == 'arm' && matrix.api-version == 5.5 }}
105+
if: ${{ matrix.arch == 'arm' && matrix.api-version == '6.0' }}
91106
with:
92107
name: tizen-common
93108
path: |
@@ -115,7 +130,7 @@ jobs:
115130

116131
- uses: actions/download-artifact@v4
117132
with:
118-
name: tizen-5.5-arm_unittests
133+
name: tizen-6.0-arm_unittests
119134

120135
- name: Download engine
121136
run: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The Flutter embedder for Tizen.
5858
### Notes
5959

6060
- To build an app (TPK) with the embedder generated in the above, copy the output artifacts (`libflutter_tizen*.so`) into the [flutter-tizen](https://github.com/flutter-tizen/flutter-tizen) tool's cached artifacts directory (`flutter/bin/cache/artifacts/engine`) and run `flutter-tizen run` or `flutter-tizen build tpk`.
61-
- To use the target device's `libstdc++.so` instead of the embedder's built-in libc++ (`third_party/libcxx`), provide the `--system-cxx` option to `tools/gn`. Tizen 5.5's `libstdc++.so` is not compatible with C++17 so you must use a sysroot for Tizen 6.0 or above.
61+
- To use the target device's `libstdc++.so` instead of the embedder's built-in libc++ (`third_party/libcxx`), provide the `--system-cxx` option to `tools/gn`. Tizen 5.5's `libstdc++.so` is not compatible with C++17, so you cannot use this option for Tizen 5.5.
6262
- Building NUI-related code requires a sysroot for Tizen 6.5 or above and the `--api-version 6.5` option.
6363

6464
## Repository structure

0 commit comments

Comments
 (0)