Skip to content

Commit

Permalink
[ci] Add Tizen 6.0 artifacts (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSUYA authored Apr 25, 2024
1 parent 6850c77 commit 3a43fb5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
api-version: [5.5, 6.5]
api-version: ['5.5', '6.0', '6.5']
arch: [arm, arm64, x86]
include:
- arch: arm
Expand Down Expand Up @@ -43,21 +43,36 @@ jobs:
gclient config --name=src --unmanaged https://github.com/${{ github.repository }}
gclient sync -v --no-history --shallow
- name: Generate Tizen 6.0 sysroot
if: ${{ matrix.api-version == '6.0' }}
run: src/tools/generate_sysroot.py --api-version 6.0 --out src/sysroot-6.0

- name: Generate Tizen 6.5 sysroot
if: ${{ matrix.api-version == 6.5 }}
if: ${{ matrix.api-version == '6.5' }}
run: src/tools/generate_sysroot.py --api-version 6.5 --out src/sysroot-6.5

- name: Build for Tizen 5.5
if: ${{ matrix.api-version == 5.5 }}
if: ${{ matrix.api-version == '5.5' }}
run: |
src/tools/gn \
--target-cpu ${{ matrix.arch }} \
--target-toolchain /usr/lib/llvm-12 \
--target-dir build
ninja -C src/out/build
- name: Build for Tizen 6.0
if: ${{ matrix.api-version == '6.0' }}
run: |
src/tools/gn \
--target-cpu ${{ matrix.arch }} \
--target-toolchain /usr/lib/llvm-12 \
--target-sysroot src/sysroot-6.0/${{ matrix.arch }} \
--api-version 6.0 --system-cxx \
--target-dir build
ninja -C src/out/build
- name: Build for Tizen 6.5
if: ${{ matrix.api-version == 6.5 }}
if: ${{ matrix.api-version == '6.5' }}
run: |
src/tools/gn \
--target-cpu ${{ matrix.arch }} \
Expand Down Expand Up @@ -87,7 +102,7 @@ jobs:
if-no-files-found: error

- uses: actions/upload-artifact@v4
if: ${{ matrix.arch == 'arm' && matrix.api-version == 5.5 }}
if: ${{ matrix.arch == 'arm' && matrix.api-version == '6.0' }}
with:
name: tizen-common
path: |
Expand Down Expand Up @@ -115,7 +130,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: tizen-5.5-arm_unittests
name: tizen-6.0-arm_unittests

- name: Download engine
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The Flutter embedder for Tizen.
### Notes

- 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`.
- 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.
- 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.
- Building NUI-related code requires a sysroot for Tizen 6.5 or above and the `--api-version 6.5` option.

## Repository structure
Expand Down

0 comments on commit 3a43fb5

Please sign in to comment.