Skip to content

Commit c03dc26

Browse files
authored
[ci] Fix artifact upload failure and hash mismatch (#260)
* [ci] Fix artifact upload failure and hash mismatch * Error if artifact is not found
1 parent 223b9a1 commit c03dc26

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ jobs:
8484
--build-tizen-shell
8585
ninja -C src/out/$OUTPUT_NAME tizen
8686
87+
if [ "${{ matrix.mode }}" != "debug" ]; then
88+
ninja -C src/out/$OUTPUT_NAME clang_x64/gen_snapshot
89+
fi
90+
8791
# Build unittests.
8892
if [ "$OUTPUT_NAME" = "linux_release_arm" ]; then
8993
ninja -C src/out/$OUTPUT_NAME flutter_tizen_unittests
@@ -96,11 +100,13 @@ jobs:
96100
with:
97101
name: tizen-arm-unittests
98102
path: src/out/${{ env.OUTPUT_NAME }}/*_unittests
103+
if-no-files-found: error
99104

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

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

115122
- uses: actions/upload-artifact@v2
116123
if: (matrix.arch == 'arm' || matrix.arch == 'arm64') && matrix.mode != 'debug'
117124
with:
118125
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}_linux-x64
119126
path: src/out/${{ env.OUTPUT_NAME }}/clang_x64/gen_snapshot
127+
if-no-files-found: error
120128

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

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

241251
test:
242252
needs: build
@@ -294,7 +304,7 @@ jobs:
294304
with:
295305
name: ${{ env.VERSION }} (${{ env.TAG_NAME }})
296306
tag_name: ${{ env.TAG_NAME }}
297-
target_commitish: ${{ github.ref_name }}
307+
target_commitish: ${{ github.sha }}
298308
files: tizen-*.zip
299309
body: |
300310
Flutter engine ${{ env.VERSION }} for Tizen

0 commit comments

Comments
 (0)