subosito / flutter-action

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

Support for FVM #307

Closed martyfuhry closed 1 month ago

martyfuhry commented 1 month ago

Our project uses fvm for version management. I wonder if you have any guidance for setting up flutter-action to use the version of Flutter configured by the .fvmrc file. An example file is:

{
  "flutter": "3.19.1",
  "flavors": {
    "development": "beta",
    "production": "3.19.1"
  },
  "updateVscodeSettings": true,
  "updateGitIgnore": true,
  "runPubGetOnSdkChanges": true
}

Can I simply read the flutter key from this file into the flutter-version: parameter? Maybe you have built-in support?

Thank you!

kuhnroyal commented 1 month ago

Duplicate of https://github.com/subosito/flutter-action/issues/296

You can also check if https://github.com/kuhnroyal/flutter-fvm-config-action works for you

martyfuhry commented 1 month ago

Gah! Sorry for the duplicate. Github search was bugged and showed me 0 results for the query "fvm".

image