Skip to content

Commit

Permalink
[ci] Fix artifact upload failure and hash mismatch (#260)
Browse files Browse the repository at this point in the history
* [ci] Fix artifact upload failure and hash mismatch

* Error if artifact is not found
  • Loading branch information
swift-kim authored Mar 15, 2022
1 parent 223b9a1 commit c03dc26
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ jobs:
--build-tizen-shell
ninja -C src/out/$OUTPUT_NAME tizen
if [ "${{ matrix.mode }}" != "debug" ]; then
ninja -C src/out/$OUTPUT_NAME clang_x64/gen_snapshot
fi
# Build unittests.
if [ "$OUTPUT_NAME" = "linux_release_arm" ]; then
ninja -C src/out/$OUTPUT_NAME flutter_tizen_unittests
Expand All @@ -96,11 +100,13 @@ jobs:
with:
name: tizen-arm-unittests
path: src/out/${{ env.OUTPUT_NAME }}/*_unittests
if-no-files-found: error

- uses: actions/upload-artifact@v2
with:
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}
path: src/out/${{ env.OUTPUT_NAME }}/libflutter_*.so
if-no-files-found: error

- uses: actions/upload-artifact@v2
if: matrix.arch == 'arm' && matrix.mode == 'release'
Expand All @@ -111,12 +117,14 @@ jobs:
src/out/linux_release_arm/public
src/out/linux_release_arm/cpp_client_wrapper
!src/out/linux_release_arm/cpp_client_wrapper/engine_method_result.cc
if-no-files-found: error

- uses: actions/upload-artifact@v2
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
if-no-files-found: error

windows-build:
runs-on: windows-2019
Expand Down Expand Up @@ -174,6 +182,7 @@ jobs:
with:
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}_windows-x64
path: C:\workspace\engine\src\out\${{ env.OUTPUT_NAME }}\gen_snapshot.exe
if-no-files-found: error

macos-build:
runs-on: macos-11
Expand Down Expand Up @@ -237,6 +246,7 @@ jobs:
with:
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}_darwin-x64
path: src/out/${{ env.OUTPUT_NAME }}/clang_x64/gen_snapshot
if-no-files-found: error

test:
needs: build
Expand Down Expand Up @@ -294,7 +304,7 @@ jobs:
with:
name: ${{ env.VERSION }} (${{ env.TAG_NAME }})
tag_name: ${{ env.TAG_NAME }}
target_commitish: ${{ github.ref_name }}
target_commitish: ${{ github.sha }}
files: tizen-*.zip
body: |
Flutter engine ${{ env.VERSION }} for Tizen
Expand Down

0 comments on commit c03dc26

Please sign in to comment.