Skip to content

Generate and upload artifacts through Github actions workflow. #3

Generate and upload artifacts through Github actions workflow.

Generate and upload artifacts through Github actions workflow. #3

name: Build and Upload Engine Artifacts
on:
pull_request:
env:
DEPOT_TOOLS_WIN_TOOLCHAIN: 0
FLUTTER_PREBUILT_DART_SDK: 1
jobs:
host_debug_framework:
runs-on: macos-latest
defaults:
run:
shell: bash
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
path: ''
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Set up depot_tools / gclient
shell: bash
run: |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $HOME/depot_tools
# Append depot_tools to the PATH for subsequent steps
echo "$HOME/depot_tools" >> $GITHUB_PATH
- name: Generate engine content hash
id: engine_content_hash
run: |
engine_content_hash=$(bin/internal/content_aware_hash.sh)
echo "::notice:: Engine content hash: ${engine_content_hash}"
echo "${engine_content_hash}" >> $GITHUB_OUTPUT
- name: Copy gclient file
run: |
cp engine/scripts/slim.gclient .gclient
- name: Gclient sync
shell: bash
run: |
gclient sync -D --no-history --shallow --with_branch_heads
- name: Build Engine
shell: bash
run: |
cd engine/src
./flutter/bin/et build --config ci/host_debug_framework