Skip to content

Implements setup-workspace GitHub Action + caching - #172

Merged
jwinarske merged 4 commits into
v2.0from
feature/gh-action
Jun 4, 2026
Merged

Implements setup-workspace GitHub Action + caching#172
jwinarske merged 4 commits into
v2.0from
feature/gh-action

Conversation

@kerberjg

@kerberjg kerberjg commented May 25, 2026

Copy link
Copy Markdown
Collaborator

Status: WIP + blocked by #171 (needs rebase)


This feature allows workspace-automation to be run in any GHA environment using the setup-workspace action.
For example, when building an app/plugin using ivi-homescreen, you can just import this action into your CI as follows:

jobs:
  ...
  steps:
    - name: Create workspace
      uses: meta-flutter/workspace-automation/setup-workspace@v2.0
      
    - name: Run
      run: |
          source ./setup_env.sh
          ls -la $FLUTTER_WORKSPACE
          dart --version
          echo "Hello world from Flutter Workspace!"

Benefits include:

  • ~30-60% speedup vs raw run
  • Compatible with Ubuntu/Fedora (tested against our build matrix)
  • Caching (apt/dnf/dart-pub/pip/artifacts/git/flutter-sdk)
    • (optional!) whole workspace, including build files/configs via cache-whole
    • Auto/manual cache key

@kerberjg

Copy link
Copy Markdown
Collaborator Author

ubuntu-legacy build currently failing due to #171 and meta-flutter/llvm-toolchains#1 being incomplete

@kerberjg
kerberjg force-pushed the feature/gh-action branch 2 times, most recently from 16efc28 to 66b9c58 Compare May 27, 2026 15:21
@kerberjg kerberjg changed the title Implements setup-workspace GitHub Action (WIP) Implements setup-workspace GitHub Action + caching (WIP) May 27, 2026
@kerberjg
kerberjg force-pushed the feature/gh-action branch 2 times, most recently from b8c3172 to bbd0c55 Compare May 27, 2026 15:49
@kerberjg kerberjg mentioned this pull request May 27, 2026
10 tasks
@kerberjg
kerberjg force-pushed the feature/gh-action branch 6 times, most recently from 1b8b114 to 724d172 Compare June 3, 2026 14:58
@kerberjg kerberjg changed the title Implements setup-workspace GitHub Action + caching (WIP) Implements setup-workspace GitHub Action + caching Jun 3, 2026
@kerberjg
kerberjg marked this pull request as ready for review June 3, 2026 21:11
@kerberjg
kerberjg requested a review from jwinarske June 3, 2026 21:32
@jwinarske

Copy link
Copy Markdown
Contributor

@kerberjg needs a rebase

@kerberjg
kerberjg force-pushed the feature/gh-action branch from 724d172 to f82cd3b Compare June 4, 2026 08:57
@kerberjg

kerberjg commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

@jwinarske done

@jwinarske
jwinarske merged commit 7f69d6f into v2.0 Jun 4, 2026
62 checks passed
@jwinarske
jwinarske deleted the feature/gh-action branch June 4, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants