utils/flutter-setup
Krzysztof kuhy Rudnicki cd76eb0a95
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
file length / file-length (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
palette drift / palette (push) Has been cancelled
repo-contract / repo contract (push) Has been cancelled
shared gate tests / gate unit tests (push) Has been cancelled
flutter-setup: exact-key pub cache only (prefix restore-keys broke pub get after a git-dep bump)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-10 18:39:29 +02:00
..
action.yml flutter-setup: exact-key pub cache only (prefix restore-keys broke pub get after a git-dep bump) 2026-10-10 18:39:29 +02:00
README.md flutter-setup: slim cached Flutter SDK for gating CI jobs 2026-10-02 15:03:53 +02:00

flutter-setup

Composite action: Flutter for gating CI jobs (analyze, test, web build) from a slim cached SDK.

- uses: kuhyx/utils/flutter-setup@flutter-setup-v1
  with:
    flutter-version: 3.47.6   # same as .fvmrc
    working-directory: app    # where pubspec.lock lives

Why

subosito/flutter-action with cache: true caches the whole SDK: 1.6 GB, about 13 s to download and 25 s to extract on every job, on a hit. That alone kept every Flutter job over a minute. This action caches a depth-1 clone of the release tag plus the host and web artifacts: 393 MB compressed, about a quarter of the restore.

Release APK builds keep subosito/flutter-action: they need the Android artifacts this action deliberately leaves out.