flutter-action icon indicating copy to clipboard operation
flutter-action copied to clipboard

Allow to automatically run `flutter precache`

Open bartekpacia opened this issue 2 years ago • 0 comments

I often have the following code in my workflows

- name: Set up Flutter
  uses: subosito/flutter-action@v2
  with:
    flutter-version: ${{ matrix.flutter-version }}
    channel: ${{ matrix.flutter-channel }}

- name: Preload Flutter artifacts
  run: flutter precache

I wish I could so something like:

- name: Set up Flutter
  uses: subosito/flutter-action@v2
  with:
    flutter-version: ${{ matrix.flutter-version }}
    channel: ${{ matrix.flutter-channel }}
    precache: true

Possibly it should also allow for more granular selection of artifacts to precache, e.g. flutter precache --android --ios would translate to:

- name: Set up Flutter
  uses: subosito/flutter-action@v2
  with:
    flutter-version: ${{ matrix.flutter-version }}
    channel: ${{ matrix.flutter-channel }}
    precache: ['android', 'ios']

bartekpacia avatar Nov 13 '23 11:11 bartekpacia