An action that parses an FVM config file (.fvmrc) into environment variables which can then be used to configure the flutter-action.
All the sample options below can be combined with each other.
The configuration will parse the FVM configuration and use subosito/flutter-action to install & cache the configured Flutter version.
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action@v2
with:
# The setup flag enables installation of the Flutter SDK, will default to true in the next major version (v3)
setup: true
# The cache flag enables caching of the Flutter SDK, default is true - if setup is true
cache: true
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
with:
path: 'some-path/.fvmrc'
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
with:
flavor: 'staging'
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
This action supports all cache inputs from the subosito/flutter-action: See https://github.com/subosito/flutter-action#caching for more information.