Skip to content

Commit 5606219

Browse files
authored
Update flutter-actions.yml
1 parent 6aededb commit 5606219

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/flutter-actions.yml

+19-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
build:
7+
build-android:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Clone repository
11+
uses: actions/checkout@v4
12+
- name: Set up Flutter
13+
uses: subosito/flutter-action@v2
14+
with:
15+
channel: stable
16+
cache: true
17+
- run: flutter pub get
18+
- run: flutter build apk
19+
20+
build-ios:
821
runs-on: macos-latest
922
steps:
1023
- name: Clone repository
@@ -13,6 +26,10 @@ jobs:
1326
uses: subosito/flutter-action@v2
1427
with:
1528
channel: stable
29+
cache: true
30+
- name: Update Cocoapods repo
31+
run: pod repo update
32+
- name: Install pods
33+
run: cd ios && pod install && cd ..
1634
- run: flutter pub get
1735
- run: flutter build ios --release --no-codesign
18-
- run: flutter build apk

0 commit comments

Comments
 (0)