-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2236 from get10101/chore/fvm
chore: introduce fvm (flutter version manager)
- Loading branch information
Showing
12 changed files
with
106 additions
and
67 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Setup Flutter FVM Environment | ||
description: "Setup FVM, Flutter for building Flutter apps." | ||
|
||
inputs: | ||
fvm_config: | ||
description: "Path to fvm config file." | ||
required: false | ||
working_dir: | ||
description: "The directory to run these steps in" | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: kuhnroyal/flutter-fvm-config-action@v2 | ||
id: fvm-config-action | ||
with: | ||
path: ${{ inputs.fvm_config }} | ||
|
||
- 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 | ||
working-directory: ${{inputs.working_dir}} | ||
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 | ||
working-directory: ${{inputs.working_dir}} | ||
run: | | ||
brew tap leoafarias/fvm | ||
brew install fvm | ||
echo "/opt/homebrew/bin" >> $GITHUB_PATH | ||
fvm install |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ on: | |
|
||
|
||
env: | ||
FLUTTER_VERSION: "3.19.1" | ||
RUST_VERSION: "1.70.0" | ||
|
||
jobs: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ on: | |
env: | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_TERM_COLOR: always | ||
FLUTTER_VERSION: "3.19.1" | ||
|
||
jobs: | ||
formatting-dprint: | ||
|
@@ -27,13 +26,10 @@ jobs: | |
- name: Setup rust toolchain | ||
run: rustup show | ||
- uses: Swatinem/[email protected] | ||
- uses: subosito/flutter-action@v2 | ||
- uses: ./.github/actions/setup-fvm | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
channel: "stable" | ||
cache: true | ||
cache-key: flutter-${{ env.FLUTTER_VERSION }} | ||
cache-path: ${{ runner.tool_cache }}/flutter | ||
fvm_config: ./mobile/.fvmrc | ||
working_dir: ./mobile | ||
- name: Install FFI bindings | ||
run: just deps-gen | ||
- name: Generate FFI bindings | ||
|
@@ -94,13 +90,15 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: extractions/setup-just@v1 | ||
- uses: subosito/flutter-action@v2 | ||
- uses: ./.github/actions/setup-fvm | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
channel: "stable" | ||
cache: true | ||
cache-key: flutter-${{ env.FLUTTER_VERSION }} | ||
cache-path: ${{ runner.tool_cache }}/flutter | ||
fvm_config: ./mobile/.fvmrc | ||
working_dir: ./mobile | ||
|
||
- uses: ./.github/actions/setup-fvm | ||
with: | ||
fvm_config: ./webapp/frontend/.fvmrc | ||
working_dir: ./webapp/frontend | ||
- name: Download Dart mocks directory | ||
uses: actions/download-artifact@v2 | ||
with: | ||
|
@@ -127,13 +125,10 @@ jobs: | |
- name: Setup rust toolchain | ||
run: rustup show | ||
- uses: Swatinem/[email protected] | ||
- uses: subosito/flutter-action@v2 | ||
- uses: ./.github/actions/setup-fvm | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
channel: "stable" | ||
cache: true | ||
cache-key: flutter-${{ env.FLUTTER_VERSION }} | ||
cache-path: ${{ runner.tool_cache }}/flutter | ||
fvm_config: ./mobile/.fvmrc | ||
working_dir: ./mobile | ||
- name: Download Rust generated FFI flutter bindings | ||
uses: actions/download-artifact@v2 | ||
with: | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,5 @@ mobile/ios/fastlane/README.md | |
|
||
# esplora override environment variables | ||
.override.esplora.env | ||
|
||
.fvm/ |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"flutter": "stable" | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"flutter": "beta" | ||
} |