Generate and upload artifacts through Github actions workflow. #42
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_host_debug: | |
| 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: 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/slim.gclient .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/host_debug | |
| - name: Upload build files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-linux_host_debug-${{ steps.engine_content_hash.outputs.value }} | |
| path: engine/src/out/ci/host_debug | |
| retention-days: 1 | |
| - name: Upload /dart-sdk-linux-x64.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_0 | |
| path: engine/src/out/ci/host_debug/zip_archives/dart-sdk-linux-x64.zip | |
| retention-days: 1 | |
| - name: Upload /flutter_patched_sdk.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_1 | |
| path: engine/src/out/ci/host_debug/zip_archives/flutter_patched_sdk.zip | |
| retention-days: 1 | |
| - name: Upload linux-x64/artifacts.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_2 | |
| path: engine/src/out/ci/host_debug/zip_archives/linux-x64/artifacts.zip | |
| retention-days: 1 | |
| - name: Upload linux-x64/font-subset.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_3 | |
| path: engine/src/out/ci/host_debug/zip_archives/linux-x64/font-subset.zip | |
| retention-days: 1 | |
| - name: Upload linux-x64/linux-x64-embedder.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_4 | |
| path: engine/src/out/ci/host_debug/zip_archives/linux-x64/linux-x64-embedder.zip | |
| retention-days: 1 | |
| linux_host_release: | |
| 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: 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/slim.gclient .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/host_release | |
| - name: Upload build files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts-linux_host_release-${{ steps.engine_content_hash.outputs.value }} | |
| path: engine/src/out/ci/host_release | |
| retention-days: 1 | |
| - name: Upload /flutter_patched_sdk_product.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_5 | |
| path: engine/src/out/ci/host_release/zip_archives/flutter_patched_sdk_product.zip | |
| retention-days: 1 | |
| linux_host_engine_global: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - linux_host_debug | |
| - linux_host_release | |
| 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: 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/slim.gclient .gclient | |
| - name: GClient sync | |
| run: | | |
| gclient sync -D --no-history --shallow --with_branch_heads | |
| - name: Download Artifacts from linux_host_debug | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifacts-linux_host_debug-${{ steps.engine_content_hash.outputs.value }} | |
| path: engine/src/out/ci/host_debug | |
| - name: Download Artifacts from linux_host_release | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifacts-linux_host_release-${{ steps.engine_content_hash.outputs.value }} | |
| path: engine/src/out/ci/host_release | |
| - name: Run generator Verify-export-symbols-release-binaries | |
| run: | | |
| cd engine/src | |
| ../../bin/dart flutter/testing/symbols/verify_exported.dart \ | |
| src/out/ci \ | |
| src/flutter/buildtools | |
| - name: Run generator api-documentation | |
| run: | | |
| cd engine/src | |
| flutter/tools/gen_docs.py \ | |
| out/docs | |
| - name: Run generator engine-stamp | |
| run: | | |
| cd engine/src | |
| ../../bin/dart flutter/tools/engine_tool/bin/et.dart \ | |
| stamp | |
| - name: Upload /ios-docs.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_6 | |
| path: engine/src/out/docs/ios-docs.zip | |
| retention-days: 1 | |
| - name: Upload /macos-docs.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_7 | |
| path: engine/src/out/docs/macos-docs.zip | |
| retention-days: 1 | |
| - name: Upload /linux-docs.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_8 | |
| path: engine/src/out/docs/linux-docs.zip | |
| retention-days: 1 | |
| - name: Upload /windows-docs.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_9 | |
| path: engine/src/out/docs/windows-docs.zip | |
| retention-days: 1 | |
| - name: Upload /impeller-docs.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_10 | |
| path: engine/src/out/docs/impeller-docs.zip | |
| retention-days: 1 | |
| - name: Upload /engine_stamp.json | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_11 | |
| path: engine/src/out/engine_stamp.json | |
| retention-days: 1 | |
| linux_host_debug_desktop: | |
| 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: 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/slim.gclient .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/host_debug_desktop | |
| - name: Upload linux-x64-debug/linux-x64-flutter-gtk.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_12 | |
| path: engine/src/out/ci/host_debug_desktop/zip_archives/linux-x64-debug/linux-x64-flutter-gtk.zip | |
| retention-days: 1 | |
| linux_host_profile_desktop: | |
| 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: 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/slim.gclient .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/host_profile_desktop | |
| - name: Upload linux-x64-profile/linux-x64-flutter-gtk.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_13 | |
| path: engine/src/out/ci/host_profile_desktop/zip_archives/linux-x64-profile/linux-x64-flutter-gtk.zip | |
| retention-days: 1 | |
| linux_host_release_desktop: | |
| 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: 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/slim.gclient .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/host_release_desktop | |
| - name: Upload linux-x64-release/linux-x64-flutter-gtk.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_14 | |
| path: engine/src/out/ci/host_release_desktop/zip_archives/linux-x64-release/linux-x64-flutter-gtk.zip | |
| retention-days: 1 | |
| linux_profile_arm64: | |
| runs-on: ubuntu-24.04-arm | |
| 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: 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/slim.gclient .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/linux_profile_arm64 | |
| - name: Upload linux-arm64-profile/linux-arm64-flutter-gtk.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_15 | |
| path: engine/src/out/ci/linux_profile_arm64/zip_archives/linux-arm64-profile/linux-arm64-flutter-gtk.zip | |
| retention-days: 1 | |
| linux_debug_arm64: | |
| runs-on: ubuntu-24.04-arm | |
| 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: 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/slim.gclient .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/linux_debug_arm64 | |
| - name: Upload linux-arm64/artifacts.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_16 | |
| path: engine/src/out/ci/linux_debug_arm64/zip_archives/linux-arm64/artifacts.zip | |
| retention-days: 1 | |
| - name: Upload linux-arm64/linux-arm64-embedder.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_17 | |
| path: engine/src/out/ci/linux_debug_arm64/zip_archives/linux-arm64/linux-arm64-embedder.zip | |
| retention-days: 1 | |
| - name: Upload linux-arm64/font-subset.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_18 | |
| path: engine/src/out/ci/linux_debug_arm64/zip_archives/linux-arm64/font-subset.zip | |
| retention-days: 1 | |
| - name: Upload linux-arm64-debug/linux-arm64-flutter-gtk.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_19 | |
| path: engine/src/out/ci/linux_debug_arm64/zip_archives/linux-arm64-debug/linux-arm64-flutter-gtk.zip | |
| retention-days: 1 | |
| - name: Upload /dart-sdk-linux-arm64.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_20 | |
| path: engine/src/out/ci/linux_debug_arm64/zip_archives/dart-sdk-linux-arm64.zip | |
| retention-days: 1 | |
| linux_release_arm64: | |
| runs-on: ubuntu-24.04-arm | |
| 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: 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/slim.gclient .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/linux_release_arm64 | |
| - name: Upload linux-arm64-release/linux-arm64-flutter-gtk.zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_21 | |
| path: engine/src/out/ci/linux_release_arm64/zip_archives/linux-arm64-release/linux-arm64-flutter-gtk.zip | |
| retention-days: 1 | |
| publish_artifacts: | |
| defaults: | |
| run: | |
| shell: bash | |
| needs: | |
| - linux_host_debug | |
| - linux_host_release | |
| - linux_host_engine_global | |
| - linux_host_debug_desktop | |
| - linux_host_profile_desktop | |
| - linux_host_release_desktop | |
| - linux_profile_arm64 | |
| - linux_debug_arm64 | |
| - linux_release_arm64 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| with: | |
| path: '' | |
| - name: Set up depot_tools | |
| 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 "value=${engine_content_hash}" >> $GITHUB_OUTPUT | |
| - name: Download /dart-sdk-linux-x64.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_0 | |
| path: artifact-0/ | |
| - name: Download /flutter_patched_sdk.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_1 | |
| path: artifact-1/ | |
| - name: Download linux-x64/artifacts.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_2 | |
| path: artifact-2/ | |
| - name: Download linux-x64/font-subset.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_3 | |
| path: artifact-3/ | |
| - name: Download linux-x64/linux-x64-embedder.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_4 | |
| path: artifact-4/ | |
| - name: Download /flutter_patched_sdk_product.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_5 | |
| path: artifact-5/ | |
| - name: Download /ios-docs.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_6 | |
| path: artifact-6/ | |
| - name: Download /macos-docs.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_7 | |
| path: artifact-7/ | |
| - name: Download /linux-docs.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_8 | |
| path: artifact-8/ | |
| - name: Download /windows-docs.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_9 | |
| path: artifact-9/ | |
| - name: Download /impeller-docs.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_10 | |
| path: artifact-10/ | |
| - name: Download /engine_stamp.json | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_11 | |
| path: artifact-11/ | |
| - name: Download linux-x64-debug/linux-x64-flutter-gtk.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_12 | |
| path: artifact-12/ | |
| - name: Download linux-x64-profile/linux-x64-flutter-gtk.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_13 | |
| path: artifact-13/ | |
| - name: Download linux-x64-release/linux-x64-flutter-gtk.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_14 | |
| path: artifact-14/ | |
| - name: Download linux-arm64-profile/linux-arm64-flutter-gtk.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_15 | |
| path: artifact-15/ | |
| - name: Download linux-arm64/artifacts.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_16 | |
| path: artifact-16/ | |
| - name: Download linux-arm64/linux-arm64-embedder.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_17 | |
| path: artifact-17/ | |
| - name: Download linux-arm64/font-subset.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_18 | |
| path: artifact-18/ | |
| - name: Download linux-arm64-debug/linux-arm64-flutter-gtk.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_19 | |
| path: artifact-19/ | |
| - name: Download /dart-sdk-linux-arm64.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_20 | |
| path: artifact-20/ | |
| - name: Download linux-arm64-release/linux-arm64-flutter-gtk.zip | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: artifact_${{ steps.engine_content_hash.outputs.value }}_21 | |
| path: artifact-21/ | |
| - name: Publish /dart-sdk-linux-x64.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-0/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/ | |
| - name: Publish /flutter_patched_sdk.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-1/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/ | |
| - name: Publish linux-x64/artifacts.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-2/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-x64 | |
| - name: Publish linux-x64/font-subset.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-3/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-x64 | |
| - name: Publish linux-x64/linux-x64-embedder.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-4/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-x64 | |
| - name: Publish /flutter_patched_sdk_product.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-5/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/ | |
| - name: Publish /ios-docs.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-6/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/ | |
| - name: Publish /macos-docs.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-7/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/ | |
| - name: Publish /linux-docs.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-8/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/ | |
| - name: Publish /windows-docs.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-9/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/ | |
| - name: Publish /impeller-docs.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-10/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/ | |
| - name: Publish /engine_stamp.json | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-11/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/ | |
| - name: Publish linux-x64-debug/linux-x64-flutter-gtk.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-12/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-x64-debug | |
| - name: Publish linux-x64-profile/linux-x64-flutter-gtk.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-13/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-x64-profile | |
| - name: Publish linux-x64-release/linux-x64-flutter-gtk.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-14/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-x64-release | |
| - name: Publish linux-arm64-profile/linux-arm64-flutter-gtk.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-15/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-arm64-profile | |
| - name: Publish linux-arm64/artifacts.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-16/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-arm64 | |
| - name: Publish linux-arm64/linux-arm64-embedder.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-17/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-arm64 | |
| - name: Publish linux-arm64/font-subset.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-18/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-arm64 | |
| - name: Publish linux-arm64-debug/linux-arm64-flutter-gtk.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-19/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-arm64-debug | |
| - name: Publish /dart-sdk-linux-arm64.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-20/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/ | |
| - name: Publish linux-arm64-release/linux-arm64-flutter-gtk.zip | |
| uses: ryand56/r2-upload-action@b801a390acbdeb034c5e684ff5e1361c06639e7c | |
| with: | |
| r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | |
| r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | |
| r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
| r2-bucket: ${{ env.R2_BUCKET }} | |
| source-dir: artifact-21/ | |
| destination-dir: ${{ steps.engine_content_hash.outputs.value }}/linux-arm64-release |