Generate and upload artifacts through Github actions workflow. #45
Workflow file for this run
This file contains hidden or 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
| # This file is generated. Do not edit directly. | |
| name: Engine Artifacts | |
| on: | |
| pull_request: | |
| env: | |
| DEPOT_TOOLS_WIN_TOOLCHAIN: 0 | |
| FLUTTER_PREBUILT_DART_SDK: 1 | |
| R2_BUCKET: flutter-zero-engine | |
| ENGINE_CHECKOUT_PATH: ${{ github.workspace }}/engine | |
| jobs: | |
| linux_android_emulator_debug_x64: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| with: | |
| path: '' | |
| - name: Set up depot_tools | |
| if: runner.os != 'Windows' | |
| 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: Install doxygen | |
| if: runner.os == 'Linux' | |
| uses: ssciwr/doxygen-install@501e53b879da7648ab392ee226f5b90e42148449 | |
| with: | |
| version: 1.14.0 | |
| - name: Set up depot_tools | |
| if: runner.os == 'Windows' | |
| run: | | |
| git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $HOME/depot_tools | |
| # Append depot_tools to the PATH for subsequent steps | |
| DEPOT_TOOLS_WIN=$(cygpath -w "$HOME/depot_tools") | |
| echo "$DEPOT_TOOLS_WIN" >> $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 "value=${engine_content_hash}" >> $GITHUB_OUTPUT | |
| - name: Copy gclient file | |
| run: | | |
| cp engine/scripts/standard.gclient | |
| - name: GClient sync | |
| run: | | |
| gclient sync -D --no-history --shallow --with_branch_heads | |
| - name: Build engine | |
| run: | | |
| cd engine/src | |
| ./flutter/bin/et build --config ci/android_emulator_debug_x64 |