Skip to content

Commit 62b5455

Browse files
committed
Add 6.0 to artifact creation version
And set the default version to 6.0. This task is part of flutter-tizen/flutter-tizen#526
1 parent d53f19c commit 62b5455

File tree

4 files changed

+28
-7
lines changed

4 files changed

+28
-7
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 3 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, 6.5]
1212
arch: [arm, arm64, x86]
1313
include:
1414
- arch: arm
@@ -42,6 +42,14 @@ jobs:
4242
run: |
4343
gclient config --name=src --unmanaged https://github.com/${{ github.repository }}
4444
gclient sync -v --no-history --shallow
45+
46+
- name: Generate Tizen 5.5 sysroot
47+
if: ${{ matrix.api-version == 5.5 }}
48+
run: src/tools/generate_sysroot.py --api-version 5.5 --out src/sysroot-5.5
49+
50+
- name: Generate Tizen 6.0 sysroot
51+
if: ${{ matrix.api-version == 6 }}
52+
run: src/tools/generate_sysroot.py --api-version 6.0 --out src/sysroot-6.0
4553

4654
- name: Generate Tizen 6.5 sysroot
4755
if: ${{ matrix.api-version == 6.5 }}
@@ -53,6 +61,19 @@ jobs:
5361
src/tools/gn \
5462
--target-cpu ${{ matrix.arch }} \
5563
--target-toolchain /usr/lib/llvm-12 \
64+
--target-sysroot src/sysroot-5.5/${{ matrix.arch }} \
65+
--api-version 5.5 \
66+
--target-dir build
67+
ninja -C src/out/build
68+
69+
- name: Build for Tizen 6.0
70+
if: ${{ matrix.api-version == 6 }}
71+
run: |
72+
src/tools/gn \
73+
--target-cpu ${{ matrix.arch }} \
74+
--target-toolchain /usr/lib/llvm-12 \
75+
--target-sysroot src/sysroot-6.0/${{ matrix.arch }} \
76+
--system-cxx \
5677
--target-dir build
5778
ninja -C src/out/build
5879
@@ -87,7 +108,7 @@ jobs:
87108
if-no-files-found: error
88109

89110
- uses: actions/upload-artifact@v4
90-
if: ${{ matrix.arch == 'arm' && matrix.api-version == 5.5 }}
111+
if: ${{ matrix.arch == 'arm' && matrix.api-version == 6 }}
91112
with:
92113
name: tizen-common
93114
path: |
@@ -115,7 +136,7 @@ jobs:
115136

116137
- uses: actions/download-artifact@v4
117138
with:
118-
name: tizen-5.5-arm_unittests
139+
name: tizen-6-arm_unittests
119140

120141
- name: Download engine
121142
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`. If Tizen version is 6.0 or above, you must use a sysroot.
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

tools/generate_sysroot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ def main():
218218
help='Force re-downloading of packages')
219219
parser.add_argument('-q', '--quiet', action='store_true',
220220
help='Suppress log output')
221-
parser.add_argument('--api-version', metavar='VER', default=5.5, type=float,
222-
help='Target API version (defaults to 5.5)')
221+
parser.add_argument('--api-version', metavar='VER', default=6.0, type=float,
222+
help='Target API version (defaults to 6.0)')
223223
args = parser.parse_args()
224224

225225
if args.out:

tools/gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def parse_args(args):
100100
parser.add_argument('--target-toolchain', type=str, required=True)
101101
parser.add_argument('--target-sysroot', type=str)
102102

103-
parser.add_argument('--api-version', default='5.5', type=str)
103+
parser.add_argument('--api-version', default='6.0', type=str)
104104
parser.add_argument('--system-cxx', default=False, action='store_true')
105105

106106
parser.add_argument('--target-dir', type=str)

0 commit comments

Comments
 (0)