8
8
9
9
commands :
10
10
setup_flutter :
11
+ parameters :
12
+ version :
13
+ type : string
14
+ default : 3.10.5
11
15
steps :
12
16
- flutter/install_sdk_and_pub :
13
- version : 3.10.5
17
+ version : <<parameters.version>>
14
18
- run :
15
19
name : Generate Pigeons
16
20
command : sh ./scripts/pigeon.sh
@@ -241,6 +245,38 @@ jobs:
241
245
command : dart run pana --no-warning --exit-code-threshold 0
242
246
- run : flutter pub publish --dry-run
243
247
248
+ test_build_sample_android :
249
+ executor :
250
+ name : android/android-machine
251
+ resource-class : xlarge
252
+ tag : 2024.01.1
253
+ steps :
254
+ - advanced-checkout/shallow-checkout
255
+ - setup_flutter :
256
+ version : $(./scripts/releases/get_latest_stable_flutter_version.sh)
257
+ - run :
258
+ name : Switch to Example app & Build app
259
+ command : cd scripts && flutter build apk --debug
260
+
261
+ test_build_sample_ios :
262
+ macos :
263
+ xcode : 15.2.0
264
+ resource_class : macos.m1.medium.gen1
265
+ steps :
266
+ - advanced-checkout/shallow-checkout
267
+ - setup_flutter :
268
+ version : $(./scripts/releases/get_latest_stable_flutter_version.sh)
269
+ - run :
270
+ name : Install CocoaPods
271
+ command : sudo gem install cocoapods
272
+ - run :
273
+ name : Install Pods
274
+ working_directory : example/ios
275
+ command : pod install --repo-update
276
+ - run :
277
+ name : Switch to Example app & Build app
278
+ command : cd scripts && flutter build ios --simulator
279
+
244
280
release :
245
281
macos :
246
282
xcode : 15.2.0
@@ -302,6 +338,8 @@ workflows:
302
338
- verify_pub :
303
339
requires :
304
340
- lint_flutter
341
+ - test_build_sample_android
342
+ - test_build_sample_ios
305
343
- hold_release :
306
344
type : approval
307
345
requires :
@@ -316,6 +354,8 @@ workflows:
316
354
# - test_ios
317
355
- e2e_ios_captain
318
356
- verify_pub
357
+ - test_build_sample_android
358
+ - test_build_sample_ios
319
359
filters :
320
360
branches :
321
361
only : master
0 commit comments