Skip to content

Commit 9989bc6

Browse files
Add initial build workflow for ios
1 parent d48c35d commit 9989bc6

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

.github/workflows/build.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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+
- name: Fetch source
48+
shell: bash
49+
working-directory: engine/src/flutter
50+
run: |
51+
git checkout ${{ github.ref }}
52+
53+
- name: Re-fetch dependencies
54+
shell: bash
55+
working-directory: engine
56+
run: |
57+
gclient sync
58+
59+
- name: Generate build files
60+
shell: bash
61+
working-directory: engine/src
62+
run: |
63+
./flutter/tools/gn --unoptimized --runtime-mode=debug
64+
# ./flutter/tools/gn --ios --unoptimized --runtime-mode=debug
65+
# ./flutter/tools/gn --ios --unoptimized --runtime-mode=profile
66+
./flutter/tools/gn --ios --unoptimized --runtime-mode=release
67+
# ./flutter/tools/gn --ios --runtime-mode=debug
68+
# ./flutter/tools/gn --ios --runtime-mode=profile
69+
./flutter/tools/gn --ios --runtime-mode=release
70+
71+
- name: Build
72+
shell: bash
73+
working-directory: engine/src
74+
run: |
75+
find . -mindepth 1 -maxdepth 1 -type d | xargs -n 1 sh -c 'ninja -C $0 -j || exit 255'
76+
77+
- uses: actions/upload-artifact@v4
78+
with:
79+
name: engine
80+
path: |
81+
engine/src/out/*/gen_*
82+
engine/src/out/*/*.xcframework

0 commit comments

Comments
 (0)