fixup! chore: introduce fvm (flutter version manager) #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Setup Flutter FVM Environment | |
description: "Setup FVM, Flutter for building Flutter apps." | |
on: | |
workflow_call: | |
runs: | |
using: composite | |
steps: | |
- uses: kuhnroyal/flutter-fvm-config-action@v2 | |
id: fvm-config-action | |
- uses: subosito/flutter-action@v2 | |
with: | |
cache: true | |
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} | |
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }} | |
- name: install fvm (linux) | |
if: runner.os == 'Linux' | |
shell: bash | |
run: | | |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
brew tap leoafarias/fvm | |
brew install fvm | |
echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH | |
fvm install | |
- name: install fvm (macos) | |
if: runner.os == 'macOS' | |
shell: bash | |
run: | | |
brew tap leoafarias/fvm | |
brew install fvm | |
echo "/opt/homebrew/bin" >> $GITHUB_PATH | |
fvm install |