File tree 1 file changed +48
-5
lines changed
1 file changed +48
-5
lines changed Original file line number Diff line number Diff line change 9
9
steps :
10
10
- name : Clone repository
11
11
uses : actions/checkout@v4
12
+
13
+ - name : Cache Flutter
14
+ uses : actions/cache@v2
15
+ id : flutter-cache
16
+ with :
17
+ key : $GITHUB_SHA-flutter
18
+ path : ~/.flutter
19
+
20
+ - name : Cache Gradle
21
+ uses : actions/cache@v2
22
+ id : gradle-cache
23
+ with :
24
+ key : $GITHUB_SHA-gradle
25
+ path : ~/.gradle
26
+
12
27
- name : Set up JDK 19
13
28
uses : actions/setup-java@v4
14
29
with :
15
- java-version : ' 19 '
16
- distribution : ' temurin '
17
- cache : ' gradle '
30
+ java-version : " 19 "
31
+ cache : " gradle "
32
+
18
33
- name : Set up Flutter
19
34
uses : subosito/flutter-action@v2
20
35
with :
21
36
channel : stable
22
37
cache : true
38
+
23
39
- run : flutter pub get
40
+
24
41
- run : flutter build apk
25
42
26
43
build-ios :
27
44
runs-on : macos-latest
28
45
steps :
29
46
- name : Clone repository
30
47
uses : actions/checkout@v4
48
+
49
+ - name : Cache CocoaPods
50
+ uses : actions/cache@v2
51
+ id : cocoa-pods-cache
52
+ with :
53
+ key : $GITHUB_SHA-cocoa-pods
54
+ path : ~/Library/Caches/CocoaPods
55
+
56
+ - name : Cache Xcode Derived Data
57
+ uses : actions/cache@v2
58
+ id : xcode-derived-data-cache
59
+ with :
60
+ key : $GITHUB_SHA-xcode-derived-data
61
+ path : ~/Library/Developer/Xcode/DerivedData
62
+
63
+ - name : Cache Flutter
64
+ uses : actions/cache@v2
65
+ id : flutter-cache
66
+ with :
67
+ key : $GITHUB_SHA-flutter
68
+ path : ~/.flutter
69
+
31
70
- name : Set up Flutter
32
71
uses : subosito/flutter-action@v2
33
72
with :
34
73
channel : stable
35
74
cache : true
75
+
76
+ - run : flutter pub get
77
+
36
78
- name : Update Cocoapods repo
37
79
run : pod repo update
38
- - run : flutter pub get
80
+
39
81
- name : Install pods
40
- run : cd ios && pod install --repo-update && cd ..
82
+ run : cd ios && rm Podfile.lock && pod install --repo-update && cd ..
83
+
41
84
- run : flutter build ios --release --no-codesign
You can’t perform that action at this time.
0 commit comments