forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3633501
commit b1d7749
Showing
2 changed files
with
100 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
|
||
|
||
name: Build Flutter Engine | ||
|
||
on: | ||
push: | ||
branches: | ||
- experimental | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- mode: '--unoptimized --runtime-mode=debug' | ||
prefix: host_debug_unopt | ||
- mode: '--unoptimized --runtime-mode=release' | ||
prefix: host_release_unopt | ||
- mode: '--unoptimized --runtime-mode=profile' | ||
prefix: host_profile_unopt | ||
# - mode: '--ios --unoptimized --runtime-mode=release' | ||
# prefix: ios_release_unopt | ||
# - mode: '--ios --unoptimized --runtime-mode=debug' | ||
# prefix: ios_debug_unopt | ||
# - mode: '--ios --unoptimized --runtime-mode=profile' | ||
# prefix: ios_profile_unopt | ||
- mode: '--ios --runtime-mode=release' | ||
prefix: ios_release | ||
- mode: '--ios --runtime-mode=debug' | ||
prefix: ios_debug | ||
- mode: '--ios --runtime-mode=profile' | ||
prefix: ios_profile | ||
|
||
steps: | ||
|
||
- name: Setup depot_tools | ||
shell: bash | ||
run: | | ||
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | ||
echo "${{ github.workspace}}/depot_tools" >> $GITHUB_PATH | ||
- name: Checkout source | ||
shell: bash | ||
run: | | ||
mkdir -p engine | ||
cat > engine/.gclient <<- EOF | ||
solutions = [ | ||
{ | ||
"managed": False, | ||
"name": "src/flutter", | ||
"url": "https://github.com/abaltatech/flutter-engine.git", | ||
"custom_deps": {}, | ||
"deps_file": "DEPS", | ||
"safesync_url": "", | ||
}, | ||
] | ||
EOF | ||
- name: Setup environment | ||
shell: bash | ||
working-directory: engine | ||
run: | | ||
gclient sync | ||
# TODO: fix github.ref checkout | ||
- name: Fetch source | ||
shell: bash | ||
working-directory: engine/src/flutter | ||
run: | | ||
git checkout experimental | ||
# git checkout ${{ github.ref }} | ||
- name: Re-fetch dependencies | ||
shell: bash | ||
working-directory: engine | ||
run: | | ||
gclient sync | ||
- name: Generate build files | ||
shell: bash | ||
working-directory: engine/src | ||
run: | | ||
./flutter/tools/gn ${{ matrix.mode }} | ||
- name: Build | ||
shell: bash | ||
working-directory: engine/src | ||
run: | | ||
find out -mindepth 1 -maxdepth 1 -type d | xargs -n 1 sh -c 'ninja -C $0 || exit 255' | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.prefix }} | ||
path: | | ||
engine/src/out/*/*.xcframework | ||
engine/src/out/*/gen_snapshot* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters