@@ -56,11 +56,25 @@ jobs:
5656 run : |
5757 PATCH_DIR=$PWD/patches
5858 cd flutter
59+
5960 git apply $PATCH_DIR/0001-clang-toolchain.patch
6061 git apply $PATCH_DIR/0003-gn-riscv32-and-riscv64.patch
6162 git apply $PATCH_DIR/0005-fml-fixes-text_input-compiler-warnings.patch
6263 git apply $PATCH_DIR/0006-impeller-unnecessary-virtual-specifier.patch
63-
64+
65+ pushd engine/src/flutter/third_party/abseil-cpp
66+ git apply $PATCH_DIR/flutter/third_party/abseil-cpp/0001-flutter-third_party-abseil-cpp-clang-compiler-warnin.patch
67+ popd
68+
69+ pushd engine/src/flutter/third_party/googletest
70+ git apply $PATCH_DIR/flutter/third_party/googletest/0001-flutter-third_party-googletest-fix-implicit-conversi.patch
71+ popd
72+
73+ pushd engine/src/flutter/third_party/swiftshader
74+ git apply $PATCH_DIR/flutter/third_party/swiftshader/0001-flutter-third_party-swiftshader-pointer-cast-to-void.patch
75+ git apply $PATCH_DIR/flutter/third_party/swiftshader/0002-flutter-third_party-swiftshader-llvm-16.0-required-f.patch
76+ popd
77+
6478 - name : Build Debug
6579 working-directory : flutter/engine/src
6680 run : |
@@ -110,56 +124,6 @@ jobs:
110124 gh release upload "$tag_debug" "$tag_debug.tar.gz" "$tag_debug.tar.gz.sha256"
111125 gh release edit "$tag_debug" --draft=false
112126
113- - name : Build Debug Unoptimized
114- working-directory : flutter/engine/src
115- run : |
116- export PATH=$PATH:$PWD/../../../depot_tools
117- export VPYTHON_VIRTUALENV_ROOT=$PWD/../../../vpython
118- CLANG_ROOT=$(find -iname clang++)
119- CLANG_ROOT=$(dirname $CLANG_ROOT)
120- export CLANG_ROOT=$(dirname $CLANG_ROOT)
121- ./flutter/tools/gn --runtime-mode=debug \
122- --unoptimized \
123- --embedder-for-target \
124- --no-build-embedder-examples \
125- --no-goma --no-rbe \
126- --no-stripped --no-enable-unittests \
127- --no-dart-version-git-info \
128- --linux-cpu $linux_cpu \
129- --target-os linux \
130- --target-sysroot $PWD/build/linux/$target_sysroot \
131- --target-toolchain $PWD/$CLANG_ROOT \
132- --target-triple $target_triple
133- ninja -C out/linux_debug_unopt_$arch
134-
135- - name : Prepare Debug Unoptimized Artifacts
136- run : |
137- scripts/prepare-sdk-$arch.sh flutter/engine/src/out/linux_debug_unopt_$arch $PWD/flutter/engine/src/build/linux/$target_sysroot
138-
139- tar czfhv $tag_debug_unopt.tar.gz flutter/engine/src/out/linux_debug_unopt_$arch/engine-sdk/
140-
141- sha256sum -b $tag_debug_unopt.tar.gz > $tag_debug_unopt.tar.gz.sha256
142-
143- - name : Publish Debug Unoptimized
144- if : ${{ inputs.release != 'true' }}
145- uses : actions/upload-artifact@v4
146- with :
147- name : engine-sdk-debug-unoptimized
148- path : |
149- linux-engine-sdk-debug-unopt-riscv64-${{ inputs.srcrev }}.tar.gz
150- linux-engine-sdk-debug-unopt-riscv64-${{ inputs.srcrev }}.tar.gz.sha256
151-
152- - name : Release - Debug Unoptimized Release
153- if : ${{ inputs.release == 'true' }}
154- env :
155- GH_TOKEN : ${{ github.token }}
156- GH_REPO : ${{ github.repository }}
157- run : |
158- gh release delete "$tag_debug_unopt" --cleanup-tag -y |true
159- gh release create --draft "$tag_debug_unopt" --title "$tag_debug_unopt" --notes "$notes_debug_unopt"
160- gh release upload "$tag_debug_unopt" "$tag_debug_unopt.tar.gz" "$tag_debug_unopt.tar.gz.sha256"
161- gh release edit "$tag_debug_unopt" --draft=false
162-
163127 - name : Build Release
164128 working-directory : flutter/engine/src
165129 run : |
0 commit comments