Skip to content

Commit 76fd462

Browse files
Add initial build workflow for ios
1 parent d48c35d commit 76fd462

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

.github/workflows/build.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
2+
3+
name: Build Flutter Engine
4+
5+
on:
6+
push:
7+
branches:
8+
- experimental
9+
10+
11+
jobs:
12+
build:
13+
runs-on: macos-latest
14+
15+
steps:
16+
17+
- name: Setup depot_tools
18+
shell: bash
19+
run: |
20+
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
21+
22+
echo "${{ github.workspace}}/depot_tools" >> $GITHUB_PATH
23+
24+
- name: Checkout source
25+
shell: bash
26+
run: |
27+
mkdir -p engine
28+
cat > engine/.gclient <<- EOF
29+
solutions = [
30+
{
31+
"managed": False,
32+
"name": "src/flutter",
33+
"url": "https://github.com/abaltatech/flutter-engine.git",
34+
"custom_deps": {},
35+
"deps_file": "DEPS",
36+
"safesync_url": "",
37+
},
38+
]
39+
EOF
40+
41+
- name: Setup environment
42+
shell: bash
43+
working-directory: engine
44+
run: |
45+
gclient sync
46+
47+
# TODO: fix github.ref checkout
48+
# - name: Fetch source
49+
# shell: bash
50+
# working-directory: engine/src/flutter
51+
# run: |
52+
# git checkout ${{ github.ref }}
53+
54+
# - name: Re-fetch dependencies
55+
# shell: bash
56+
# working-directory: engine
57+
# run: |
58+
# gclient sync
59+
60+
- name: Generate build files
61+
shell: bash
62+
working-directory: engine/src
63+
run: |
64+
./flutter/tools/gn --unoptimized --runtime-mode=debug
65+
# ./flutter/tools/gn --ios --unoptimized --runtime-mode=debug
66+
# ./flutter/tools/gn --ios --unoptimized --runtime-mode=profile
67+
./flutter/tools/gn --ios --unoptimized --runtime-mode=release
68+
# ./flutter/tools/gn --ios --runtime-mode=debug
69+
# ./flutter/tools/gn --ios --runtime-mode=profile
70+
./flutter/tools/gn --ios --runtime-mode=release
71+
72+
- name: Build
73+
shell: bash
74+
working-directory: engine/src
75+
run: |
76+
find . -mindepth 1 -maxdepth 1 -type d | xargs -n 1 sh -c 'ninja -C $0 || exit 255'
77+
78+
- uses: actions/upload-artifact@v4
79+
with:
80+
name: engine
81+
path: |
82+
engine/src/out/*/gen_*
83+
engine/src/out/*/*.xcframework

0 commit comments

Comments
 (0)