@@ -4,13 +4,15 @@ name: build
4
4
# events but only for the develop branch
5
5
on :
6
6
push :
7
- branches : [ develop, master ]
7
+ branches : [develop, main ]
8
8
paths :
9
- - ' flutter_cache_manager/**'
9
+ - " flutter_cache_manager/**"
10
+ - " .github/workflows/**"
10
11
pull_request :
11
- branches : [ develop ]
12
+ branches : [develop]
12
13
paths :
13
- - ' flutter_cache_manager/**'
14
+ - " flutter_cache_manager/**"
15
+ - " .github/workflows/**"
14
16
15
17
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16
18
jobs :
@@ -26,12 +28,15 @@ jobs:
26
28
# Steps represent a sequence of tasks that will be executed as part of the job
27
29
steps :
28
30
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29
- - uses : actions/checkout@v3
31
+ - uses : actions/checkout@v4
30
32
31
33
# Make sure the stable version of Flutter is available
32
- - uses : subosito/flutter-action@v2
34
+ - name : Set up Flutter
35
+ uses : subosito/flutter-action@v2
33
36
with :
34
- channel : ' stable'
37
+ channel : " stable"
38
+ architecture : x64
39
+ cache : true
35
40
36
41
# Download all Flutter packages
37
42
- name : Download dependencies
@@ -55,12 +60,15 @@ jobs:
55
60
# Steps represent a sequence of tasks that will be executed as part of the job
56
61
steps :
57
62
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
58
- - uses : actions/checkout@v3
63
+ - uses : actions/checkout@v4
59
64
60
65
# Make sure the stable version of Flutter is available
61
- - uses : subosito/flutter-action@v2
66
+ - name : Set up Flutter
67
+ uses : subosito/flutter-action@v2
62
68
with :
63
- channel : ' stable'
69
+ channel : " stable"
70
+ architecture : x64
71
+ cache : true
64
72
65
73
# Download all Flutter packages
66
74
- name : Download dependencies
@@ -85,18 +93,21 @@ jobs:
85
93
# Steps represent a sequence of tasks that will be executed as part of the job
86
94
steps :
87
95
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
88
- - uses : actions/checkout@v3
96
+ - uses : actions/checkout@v4
89
97
90
98
# Ensure correct JAVA version is installed.
91
- - uses : actions/setup-java@v3
99
+ - uses : actions/setup-java@v4
92
100
with :
93
- distribution : ' zulu'
94
- java-version : ' 17 '
101
+ distribution : " zulu"
102
+ java-version : " 17 "
95
103
96
104
# Make sure the stable version of Flutter is available
97
- - uses : subosito/flutter-action@v2
105
+ - name : Set up Flutter
106
+ uses : subosito/flutter-action@v2
98
107
with :
99
- channel : ' stable'
108
+ channel : " stable"
109
+ architecture : x64
110
+ cache : true
100
111
101
112
# Download all Flutter packages
102
113
- name : Download dependencies
@@ -121,12 +132,15 @@ jobs:
121
132
# Steps represent a sequence of tasks that will be executed as part of the job
122
133
steps :
123
134
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
124
- - uses : actions/checkout@v3
135
+ - uses : actions/checkout@v4
125
136
126
137
# Make sure the stable version of Flutter is available
127
- - uses : subosito/flutter-action@v2
138
+ - name : Set up Flutter
139
+ uses : subosito/flutter-action@v2
128
140
with :
129
- channel : ' stable'
141
+ channel : " stable"
142
+ architecture : x64
143
+ cache : true
130
144
131
145
# Download all Flutter packages
132
146
- name : Download dependencies
@@ -151,12 +165,15 @@ jobs:
151
165
# Steps represent a sequence of tasks that will be executed as part of the job
152
166
steps :
153
167
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
154
- - uses : actions/checkout@v3
168
+ - uses : actions/checkout@v4
155
169
156
170
# Make sure the stable version of Flutter is available
157
- - uses : subosito/flutter-action@v2
171
+ - name : Set up Flutter
172
+ uses : subosito/flutter-action@v2
158
173
with :
159
- channel : ' stable'
174
+ channel : " stable"
175
+ architecture : x64
176
+ cache : true
160
177
161
178
# Enable platform support
162
179
- name : Enable macOS
@@ -186,12 +203,15 @@ jobs:
186
203
# Steps represent a sequence of tasks that will be executed as part of the job
187
204
steps :
188
205
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
189
- - uses : actions/checkout@v3
206
+ - uses : actions/checkout@v4
190
207
191
208
# Make sure the stable version of Flutter is available
192
- - uses : subosito/flutter-action@v2
209
+ - name : Set up Flutter
210
+ uses : subosito/flutter-action@v2
193
211
with :
194
- channel : ' stable'
212
+ channel : " stable"
213
+ architecture : x64
214
+ cache : true
195
215
196
216
# Enable platform support
197
217
- name : Enable Windows
@@ -225,12 +245,15 @@ jobs:
225
245
- run : sudo apt-get install -y ninja-build libgtk-3-dev libblkid-dev
226
246
227
247
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
228
- - uses : actions/checkout@v3
248
+ - uses : actions/checkout@v4
229
249
230
250
# Make sure the stable version of Flutter is available
231
- - uses : subosito/flutter-action@v2
251
+ - name : Set up Flutter
252
+ uses : subosito/flutter-action@v2
232
253
with :
233
- channel : ' stable'
254
+ channel : " stable"
255
+ architecture : x64
256
+ cache : true
234
257
235
258
# Enable platform support
236
259
- name : Enable Linux
@@ -265,12 +288,15 @@ jobs:
265
288
# Steps represent a sequence of tasks that will be executed as part of the job
266
289
steps :
267
290
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
268
- - uses : actions/checkout@v3
291
+ - uses : actions/checkout@v4
269
292
270
293
# Make sure the stable version of Flutter is available
271
- - uses : subosito/flutter-action@v2
294
+ - name : Set up Flutter
295
+ uses : subosito/flutter-action@v2
272
296
with :
273
- channel : ' stable'
297
+ channel : " stable"
298
+ architecture : x64
299
+ cache : true
274
300
275
301
# Download all Flutter packages
276
302
- name : Download dependencies
@@ -293,12 +319,15 @@ jobs:
293
319
# Steps represent a sequence of tasks that will be executed as part of the job
294
320
steps :
295
321
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
296
- - uses : actions/checkout@v3
322
+ - uses : actions/checkout@v4
297
323
298
324
# Make sure the stable version of Flutter is available
299
- - uses : subosito/flutter-action@v2
325
+ - name : Set up Flutter
326
+ uses : subosito/flutter-action@v2
300
327
with :
301
- channel : ' stable'
328
+ channel : " stable"
329
+ architecture : x64
330
+ cache : true
302
331
303
332
# Download all Flutter packages
304
333
- name : Download dependencies
@@ -311,7 +340,7 @@ jobs:
311
340
working-directory : ${{env.source-directory}}
312
341
313
342
# Upload code coverage information
314
- - uses : codecov/codecov-action@v3
343
+ - uses : codecov/codecov-action@v4
315
344
with :
316
345
files : ${{env.source-directory}}/coverage/lcov.info
317
346
name : CacheManager
0 commit comments