Skip to content

Commit 91a6c45

Browse files
committed
Use FVM
1 parent 996ee4d commit 91a6c45

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.github/workflows/base.yaml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,18 @@ jobs:
3232
with:
3333
paths: "**/*.md"
3434

35+
- name: Get Flutter version by FVM
36+
uses: kuhnroyal/flutter-fvm-config-action@v2
37+
id: fvm-config-action
38+
with:
39+
path: ".fvmrc"
40+
flavor: "stable"
41+
3542
- name: Set up Flutter
3643
uses: subosito/flutter-action@v2
3744
with:
38-
channel: "stable"
45+
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
46+
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
3947
architecture: x64
4048
cache: true
4149

@@ -80,10 +88,18 @@ jobs:
8088
with:
8189
fetch-depth: 1 # Use shallow clone for faster checkout
8290

91+
- name: Get Flutter version by FVM
92+
uses: kuhnroyal/flutter-fvm-config-action@v2
93+
id: fvm-config-action
94+
with:
95+
path: ".fvmrc"
96+
flavor: "stable"
97+
8398
- name: Set up Flutter
8499
uses: subosito/flutter-action@v2
85100
with:
86-
channel: "stable"
101+
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
102+
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
87103
architecture: x64
88104
cache: true
89105

@@ -117,10 +133,18 @@ jobs:
117133
- name: Set up Dart
118134
uses: dart-lang/setup-dart@v1
119135

136+
- name: Get Flutter version by FVM
137+
uses: kuhnroyal/flutter-fvm-config-action@v2
138+
id: fvm-config-action
139+
with:
140+
path: ".fvmrc"
141+
flavor: "stable"
142+
120143
- name: Set up Flutter
121144
uses: subosito/flutter-action@v2
122145
with:
123-
channel: "stable"
146+
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
147+
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
124148
architecture: x64
125149
cache: true
126150

0 commit comments

Comments
 (0)