Skip to content
triangle

GitHub Action

Setup Flutter Version Management CLI

v1.0 Latest version

Setup Flutter Version Management CLI

triangle

Setup Flutter Version Management CLI

Setup the Flutter Version Management CLI, and add it to the PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Flutter Version Management CLI

uses: flutter-actions/[email protected]

Learn more about this action in flutter-actions/setup-fvm

Choose a version

Important

⚠️⚠️⚠️

This action is not working as expected, I would like to apology for this since I don't have the bandwidth to resolve the issues yet at this time.

About

Warning

Currently, the action only supports Linux and macOS runners.

This GitHub Action installs and sets up of a Flutter Version Management by @leoafarias. An alternative to the flutter-actions/setup-flutter action.

Inputs

The action takes the following inputs:

  • version: The version of FVM to install. Default: latest.

Usage

Install the latest FVM:

name: Flutter

on:
  push:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Setup Flutter Version Management CLI
        uses: flutter-actions/setup-fvm@v1

      - name: Install Flutter SDK
        run: echo yes | fvm use stable

      - name: Print Flutter SDK version
        run: fvm flutter --version

Important

Do not use both flutter-actions/setup-flutter and flutter-actions/setup-fvm in the same workflow. It provides the same functionality, so just pick one.

License

Licensed under the MIT License.