Skip to content

Commit 4d673e9

Browse files
authored
[Tizen] Add macos arm64 build and release (#372)
1 parent c49c9ee commit 4d673e9

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,59 @@ jobs:
156156
if-no-files-found: error
157157

158158
macos-build:
159+
runs-on: macos-latest
160+
161+
strategy:
162+
matrix:
163+
arch: [arm, arm64]
164+
mode: [release, profile]
165+
166+
steps:
167+
- uses: actions/checkout@v4
168+
with:
169+
path: src/flutter
170+
fetch-depth: 0
171+
172+
- uses: actions/setup-python@v5
173+
with:
174+
python-version: "3.11"
175+
176+
- name: Install depot_tools
177+
run: |
178+
git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
179+
echo "$PWD/depot_tools" >> $GITHUB_PATH
180+
181+
- name: Run gclient sync
182+
run: |
183+
gclient config --name=src/flutter --unmanaged https://github.com/flutter-tizen/engine
184+
gclient setdep --var=download_dart_sdk=False --var=download_android_deps=False --deps-file=src/flutter/DEPS
185+
gclient sync -v --no-history --shallow
186+
187+
- name: Build
188+
run: |
189+
# Change host_toolchain to mac/clang_arm64.
190+
sed -i "" "s|//build/toolchain/linux:clang_$host_cpu|//build/toolchain/mac:clang_$host_cpu|g" src/build/config/BUILDCONFIG.gn
191+
192+
# Pass dummy values to prevent using the default (Linux) toolchain.
193+
src/flutter/tools/gn \
194+
--linux \
195+
--linux-cpu=${{ matrix.arch }} \
196+
--no-goma \
197+
--target-toolchain _ \
198+
--target-sysroot _ \
199+
--target-triple _ \
200+
--runtime-mode=${{ matrix.mode }} \
201+
--disable-desktop-embeddings \
202+
--target-dir build
203+
ninja -C src/out/build clang_arm64/gen_snapshot
204+
205+
- uses: actions/upload-artifact@v4
206+
with:
207+
name: tizen-${{ matrix.arch }}-${{ matrix.mode }}_darwin-arm64
208+
path: src/out/build/clang_arm64/gen_snapshot
209+
if-no-files-found: error
210+
211+
macos-intel-build:
159212
runs-on: macos-13
160213

161214
strategy:

0 commit comments

Comments
 (0)