Skip to content

Commit

Permalink
fixup! chore: introduce fvm (flutter version manager)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonomat committed Mar 14, 2024
1 parent f96f275 commit a5ff59f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,7 @@ jobs:
- name: Setup rust toolchain
run: rustup show
- uses: Swatinem/[email protected]
- uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
with:
path: 'mobile/.fvmrc'
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
cache: true
cache-key: flutter-${{ env.FLUTTER_VERSION }}
cache-path: ${{ runner.tool_cache }}/flutter
- uses: ./.github/workflows/fvm.yml
- name: Install FFI bindings
run: just deps-gen
- name: Generate FFI bindings
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/fvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Setup Flutter FVM Environment
description: "Setup FVM, Flutter for building Flutter apps."


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

0 comments on commit a5ff59f

Please sign in to comment.