Skip to content

kuhnroyal/flutter-fvm-config-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter-fvm-config-action

An action that parses an FVM config file (.fvmrc) into environment variables which can then be used to configure the flutter-action.

Usage

All the sample options below can be combined with each other.

Basic usage

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

Basic usage with manual configuration

    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 }}

Custom config path

    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 }}

Reading specific flavor

    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 }}

Caching

This action supports all cache inputs from the subosito/flutter-action: See https://github.com/subosito/flutter-action#caching for more information.