File tree Expand file tree Collapse file tree 2 files changed +29
-20
lines changed Expand file tree Collapse file tree 2 files changed +29
-20
lines changed Original file line number Diff line number Diff line change @@ -41,22 +41,36 @@ jobs:
41
41
with :
42
42
path : ~/.pub-cache
43
43
key : ubuntu-pub-${{ hashFiles('**/pubspec.lock') }}
44
- restore-keys : |
45
- ubuntu-pub-
44
+ restore-keys : ubuntu-pub-
46
45
47
46
- name : Cache build_runner (Optional)
48
47
uses : actions/cache@v3
49
48
with :
50
49
path : .dart_tool/build
51
- key : ubuntu-build-runner-${{ hashFiles('**/*.dart') }}
52
- restore-keys : |
53
- ubuntu-build-runner-
50
+ key : ubuntu-build-runner-${{ hashFiles('lib/api/model/**/*.dart') }}
51
+ restore-keys : ubuntu-build-runner-
52
+
53
+ - name : Cache Gradle
54
+ uses : actions/cache@v3
55
+ with :
56
+ path : |
57
+ ~/.gradle/caches
58
+ ~/.gradle/wrapper
59
+ key : ubuntu-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
60
+ restore-keys : ubuntu-gradle-
61
+
62
+ - name : Cache CMake
63
+ uses : actions/cache@v3
64
+ with :
65
+ path : /usr/local/lib/android/sdk/cmake
66
+ key : ubuntu-android-cmake
67
+ restore-keys : ubuntu-android-cmake-
54
68
55
69
- name : Install dependencies
56
70
run : flutter pub get
57
71
58
72
- name : Prebuild with build_runner
59
- run : dart run build_runner build --delete-conflicting-outputs
73
+ run : dart run build_runner build
60
74
61
75
- name : Build apk
62
76
run : |
Original file line number Diff line number Diff line change @@ -31,29 +31,24 @@ jobs:
31
31
steps :
32
32
- uses : actions/checkout@v4
33
33
34
- - name : Switch Xcode
35
- run : sudo xcode-select -s /Applications/Xcode_16.4.app
34
+ - name : Setup Flutter
35
+ uses : subosito/flutter-action@v2
36
+ with :
37
+ flutter-version : ${{ env.FLUTTER_VERSION }}
36
38
37
- - name : Cache Flutter SDK
39
+ - name : Cache Pub Packages
38
40
uses : actions/cache@v3
39
41
with :
40
42
path : ~/.pub-cache
41
43
key : macos-pub-${{ hashFiles('**/pubspec.lock') }}
42
- restore-keys : |
43
- macos-pub-
44
-
45
- - name : Setup Flutter
46
- uses : subosito/flutter-action@v2
47
- with :
48
- flutter-version : ${{ env.FLUTTER_VERSION }}
44
+ restore-keys : macos-pub-
49
45
50
46
- name : Cache build_runner (Optional)
51
47
uses : actions/cache@v3
52
48
with :
53
49
path : .dart_tool/build
54
- key : macos-build-runner-${{ hashFiles('**/*.dart') }}
55
- restore-keys : |
56
- macos-build-runner-
50
+ key : macos-build-runner-${{ hashFiles('lib/api/model/**/*.dart') }}
51
+ restore-keys : macos-build-runner-
57
52
58
53
- name : Cache CocoaPods Pods
59
54
uses : actions/cache@v3
78
73
pod install
79
74
80
75
- name : Prebuild with build_runner
81
- run : dart run build_runner build --delete-conflicting-outputs
76
+ run : dart run build_runner build
82
77
83
78
- name : Build iOS App and IPA
84
79
run : |
You can’t perform that action at this time.
0 commit comments