subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.28k stars 202 forks source link

Add optional "precache" flag #276

Closed bartekpacia closed 8 months ago

bartekpacia commented 9 months ago

resolves #256 (what a nice round number!)

bartekpacia commented 8 months ago

Ping @subosito. I think this implementation is good enough (it surely is for my use case :) ). flutter precache is smart enough to only download artifacts for platforms which can be targeted from the current one - i.e. it won't download ios and macos artifacts on a Linux machine. More details: https://github.com/flutter/flutter/issues/144656

bartekpacia commented 8 months ago

I just realized that this PR doesn't make sense. The archives that this action downloads already contain all the relevant artifacts:

For example take a look at contents of these directories:

These Linux archive already contain:

The macOS archive also contains macOS- and iOS-specific stuff like bin/cache/artifacts/ios-deploy/ios-deploy.