Skip to content

Commit 1407d8b

Browse files
Use fvm for building workflows (#694)
1 parent bdc5573 commit 1407d8b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/android.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,7 @@ jobs:
5050
5151
- name: Build for Android
5252
run: |
53-
flutter pub get
54-
flutter build apk --debug
53+
dart pub global activate fvm
54+
fvm install
55+
fvm flutter pub get
56+
fvm flutter build apk --debug

.github/workflows/ios.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ jobs:
4646
4747
- name: Build for iOS
4848
run: |
49-
flutter pub get
49+
dart pub global activate fvm
50+
fvm install
51+
fvm flutter pub get
5052
cd ios
5153
pod repo update
5254
pod install
5355
cd ..
54-
flutter build ios --release --no-codesign --no-tree-shake-icons
56+
fvm flutter build ios --release --no-codesign --no-tree-shake-icons

0 commit comments

Comments
 (0)