@@ -81,15 +81,13 @@ jobs:
8181 if : matrix.os == 'host'
8282 with :
8383 name : host-${{ matrix.arch }}-${{ matrix.mode }}
84- path : |
85- src/out/${{ env.OUTPUT_NAME }}/*_unittests
84+ path : src/out/${{ env.OUTPUT_NAME }}/*_unittests
8685
8786 - uses : actions/upload-artifact@v2
8887 if : matrix.os == 'linux'
8988 with :
9089 name : tizen-${{ matrix.arch }}-${{ matrix.mode }}
91- path : |
92- src/out/${{ env.OUTPUT_NAME }}/libflutter_*.so
90+ path : src/out/${{ env.OUTPUT_NAME }}/libflutter_*.so
9391
9492 - uses : actions/upload-artifact@v2
9593 if : matrix.arch == 'arm' && matrix.mode == 'release'
@@ -101,6 +99,124 @@ jobs:
10199 src/out/linux_release_arm/cpp_client_wrapper
102100 !src/out/linux_release_arm/cpp_client_wrapper/engine_method_result.cc
103101
102+ - uses : actions/upload-artifact@v2
103+ if : (matrix.arch == 'arm' || matrix.arch == 'arm64') && (matrix.mode == 'release' || matrix.mode == 'profile')
104+ with :
105+ name : tizen-${{ matrix.arch }}-${{ matrix.mode }}_linux-x64
106+ path : src/out/${{ env.OUTPUT_NAME }}/clang_x64/gen_snapshot
107+
108+ windows-build :
109+ runs-on : windows-2019
110+
111+ strategy :
112+ matrix :
113+ arch : [arm, arm64]
114+ mode : [release, profile]
115+
116+ steps :
117+ - name : checkout engine
118+ run : |
119+ mkdir C:\workspace\engine\src\flutter
120+ cd C:\workspace\engine\src\flutter
121+ git config --global core.autocrlf true
122+ git init --quiet
123+ git remote add origin https://github.com/${{ github.repository }}
124+ git fetch --depth 1 origin ${{ github.sha }}
125+ git checkout FETCH_HEAD
126+
127+ - name : setup environments
128+ run : |
129+ Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -Force
130+ echo "DEPOT_TOOLS_WIN_TOOLCHAIN=0" >> $Env:GITHUB_ENV
131+ echo "GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" >> $Env:GITHUB_ENV
132+ echo "WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10" >> $Env:GITHUB_ENV
133+
134+ - name : install depot_tools
135+ run : |
136+ Invoke-WebRequest -Uri https://storage.googleapis.com/chrome-infra/depot_tools.zip -OutFile depot_tools.zip
137+ 7z x -y -o"C:\workspace\depot_tools" .\depot_tools.zip
138+ echo "C:\workspace\depot_tools" >> $Env:GITHUB_PATH
139+
140+ - name : gclient sync
141+ working-directory : C:\workspace\engine
142+ run : |
143+ gclient config --name=src\flutter --unmanaged https://github.com/flutter-tizen/engine
144+ $env:PYTHONPATH="C:\workspace\depot_tools"
145+ python3 src\flutter\ci\tizen\gclient-shallow-sync.py src\flutter\DEPS
146+ gclient sync -v --no-history --shallow
147+
148+ - name : build
149+ working-directory : C:\workspace\engine\src
150+ run : |
151+ python3 .\flutter\tools\gn `
152+ --linux --linux-cpu=${{ matrix.arch }} `
153+ --runtime-mode=${{ matrix.mode }} `
154+ --no-goma
155+ ninja -C .\out\linux_${{ matrix.mode }}_${{ matrix.arch }} gen_snapshot
156+
157+ - uses : actions/upload-artifact@v2
158+ with :
159+ name : tizen-${{ matrix.arch }}-${{ matrix.mode }}_windows-x64
160+ path : C:\workspace\engine\src\out\linux_${{ matrix.mode }}_${{ matrix.arch }}\gen_snapshot.exe
161+
162+ macos-build :
163+ runs-on : macos-11
164+
165+ strategy :
166+ matrix :
167+ arch : [arm, arm64]
168+ mode : [release, profile]
169+
170+ env :
171+ OUTPUT_NAME : linux_${{ matrix.mode }}_${{ matrix.arch }}
172+
173+ steps :
174+ - uses : actions/checkout@v2
175+ with :
176+ path : src/flutter
177+
178+ - uses : actions/cache@v2
179+ with :
180+ path : src/out/${{ env.OUTPUT_NAME }}
181+ key : out-macos-build-${{ env.OUTPUT_NAME }}-${{ github.sha }}
182+ restore-keys : |
183+ out-macos-build-${{ env.OUTPUT_NAME }}-
184+
185+ - name : install depot_tools
186+ run : |
187+ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
188+ echo "$PWD/depot_tools" >> $GITHUB_PATH
189+
190+ - name : install required packages
191+ run : |
192+ brew install md5sha1sum
193+
194+ - name : gclient sync
195+ run : |
196+ gclient config --name=src/flutter --unmanaged https://github.com/flutter-tizen/engine
197+ gclient setdep --var=download_android_deps=False --deps-file=src/flutter/DEPS
198+ PYTHONPATH="$PWD/depot_tools" python3 ./src/flutter/ci/tizen/gclient-shallow-sync.py src/flutter/DEPS
199+ gclient sync -v --no-history --shallow
200+
201+ - name : build
202+ run : |
203+ src/flutter/ci/tizen/cache-checksum.sh restore src/out/$OUTPUT_NAME
204+ # Change host_toolchain to mac/clang_x64.
205+ sed -i "" "s|//build/toolchain/linux:clang_$host_cpu|//build/toolchain/mac:clang_$host_cpu|g" src/build/config/BUILDCONFIG.gn
206+ # Pass dummy toolchain values to avoid using linux target toolchain settings.
207+ python3 ./src/flutter/tools/gn \
208+ --linux --linux-cpu=${{ matrix.arch }} \
209+ --runtime-mode=${{ matrix.mode }} \
210+ --no-goma \
211+ --target-toolchain _ --target-sysroot _ --target-triple _
212+ ninja -C ./src/out/$OUTPUT_NAME clang_x64/gen_snapshot
213+ src/flutter/ci/tizen/cache-checksum.sh save src/out/$OUTPUT_NAME
214+
215+ - uses : actions/upload-artifact@v2
216+ with :
217+ name : tizen-${{ matrix.arch }}-${{ matrix.mode }}_darwin-x64
218+ path : src/out/linux_${{ matrix.mode }}_${{ matrix.arch }}/clang_x64/gen_snapshot
219+
104220 test :
105221 needs : build
106222 runs-on : ubuntu-latest
0 commit comments