Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 41 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
ninja -C src/out/$OUTPUT_NAME tizen

# Build unittests.
if [[ "$OUTPUT_NAME" == "linux_release_arm" ]]; then
if [ "$OUTPUT_NAME" = "linux_release_arm" ]; then
ninja -C src/out/$OUTPUT_NAME flutter_tizen_unittests
fi

Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
!src/out/linux_release_arm/cpp_client_wrapper/engine_method_result.cc

- uses: actions/upload-artifact@v2
if: (matrix.arch == 'arm' || matrix.arch == 'arm64') && (matrix.mode == 'release' || matrix.mode == 'profile')
if: (matrix.arch == 'arm' || matrix.arch == 'arm64') && matrix.mode != 'debug'
with:
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}_linux-x64
path: src/out/${{ env.OUTPUT_NAME }}/clang_x64/gen_snapshot
Expand All @@ -126,6 +126,9 @@ jobs:
arch: [arm, arm64]
mode: [release, profile]

env:
OUTPUT_NAME: linux_${{ matrix.mode }}_${{ matrix.arch }}

steps:
- name: checkout engine
run: |
Expand Down Expand Up @@ -165,12 +168,12 @@ jobs:
--linux --linux-cpu=${{ matrix.arch }} `
--runtime-mode=${{ matrix.mode }} `
--no-goma
ninja -C .\out\linux_${{ matrix.mode }}_${{ matrix.arch }} gen_snapshot
ninja -C .\out\${{ env.OUTPUT_NAME }} gen_snapshot

- uses: actions/upload-artifact@v2
with:
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}_windows-x64
path: C:\workspace\engine\src\out\linux_${{ matrix.mode }}_${{ matrix.arch }}\gen_snapshot.exe
path: C:\workspace\engine\src\out\${{ env.OUTPUT_NAME }}\gen_snapshot.exe

macos-build:
runs-on: macos-11
Expand Down Expand Up @@ -233,7 +236,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}_darwin-x64
path: src/out/linux_${{ matrix.mode }}_${{ matrix.arch }}/clang_x64/gen_snapshot
path: src/out/${{ env.OUTPUT_NAME }}/clang_x64/gen_snapshot

test:
needs: build
Expand All @@ -260,3 +263,36 @@ jobs:
run: |
chmod +x flutter_tizen_unittests
docker run --rm -t -v `pwd`:/root ${IMAGE_TAG} /root/flutter_tizen_unittests

release:
needs: [windows-build, macos-build, test]
if: github.event_name == 'push'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v2

- name: create archives
run: |
rm -r *-unittests
for name in tizen-*; do
7z a $name.zip ./$name/*
done

- name: set variables
run: |
echo "TAG_NAME=$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV
echo "VERSION=$(echo "${{ github.ref_name }}" | cut -d'-' -f2)" >> $GITHUB_ENV

- uses: softprops/action-gh-release@v1
with:
name: ${{ env.VERSION }} (${{ env.TAG_NAME }})
tag_name: ${{ env.TAG_NAME }}
target_commitish: ${{ github.ref_name }}
files: tizen-*.zip
body: |
Flutter engine ${{ env.VERSION }} for Tizen

https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
8 changes: 5 additions & 3 deletions .github/workflows/check-symbol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ name: Check Symbols

on:
workflow_run:
workflows: ["Build"]
workflows:
- Build
types:
- completed

jobs:
check:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
Expand Down Expand Up @@ -43,7 +45,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.payload.workflow_run.head_sha,
context: "Check Symbols",
context: 'Check Symbols',
state: 'success',
description: 'All symbols are valid'
});
Expand All @@ -57,7 +59,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.payload.workflow_run.head_sha,
context: "Check Symbols",
context: 'Check Symbols',
state: 'failure',
description: 'Failed in checking symbols',
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}',
Expand Down