@@ -9,6 +9,12 @@ parameters:
9
9
macos-destination :
10
10
type : string
11
11
default : platform=macOS,arch=x86_64
12
+ tvos-destination :
13
+ type : string
14
+ default : platform=tvOS Simulator,name=Apple TV 4K (3rd generation),OS=latest
15
+ watchos-destination :
16
+ type : string
17
+ default : platform=watchOS Simulator,name=Apple Watch Series 8 (45mm),OS=latest
12
18
13
19
orbs :
14
20
aws-cli :
circleci/[email protected]
97
103
defaults : &defaults
98
104
macos :
99
105
xcode : ' 14.0.0'
106
+ resource_class : macos.x86.medium.gen2
100
107
environment :
101
108
BUNDLE_JOBS : 4
102
109
BUNDLE_RETRY : 3
@@ -151,6 +158,26 @@ jobs:
151
158
- run :
152
159
name : Build amplify for macos SPM
153
160
command : xcodebuild build -scheme Amplify-Package -sdk macosx -destination "<< pipeline.parameters.macos-destination >>" | tee "artifacts/build-Ampify-for-macos-SPM.log" | xcpretty
161
+ build_amplify_tvos_spm :
162
+ << : *defaults
163
+ macos :
164
+ xcode : ' 14.3.0'
165
+ steps :
166
+ - shallow_checkout
167
+ - make_artifacts_directory
168
+ - run :
169
+ name : Build amplify for tvOS SPM
170
+ command : xcodebuild build -scheme Amplify-Package -sdk appletvsimulator -destination "<< pipeline.parameters.tvos-destination >>" | tee "artifacts/build-Ampify-for-tvos-SPM.log" | xcpretty
171
+ build_amplify_watchos_spm :
172
+ << : *defaults
173
+ macos :
174
+ xcode : ' 14.3.0'
175
+ steps :
176
+ - shallow_checkout
177
+ - make_artifacts_directory
178
+ - run :
179
+ name : Build amplify for watchOS SPM
180
+ command : xcodebuild build -scheme Amplify-Package -sdk watchsimulator -destination "<< pipeline.parameters.watchos-destination >>" | tee "artifacts/build-Ampify-for-watchos-SPM.log" | xcpretty
154
181
155
182
unit_test :
156
183
<< : *defaults
@@ -164,6 +191,8 @@ jobs:
164
191
type : string
165
192
destination :
166
193
type : string
194
+ macos :
195
+ xcode : <<parameters.xcode-version>>
167
196
description : << parameters.scheme >> unit test
168
197
steps :
169
198
- shallow_checkout
@@ -253,6 +282,8 @@ deploy_requires: &deploy_requires
253
282
requires :
254
283
- build_amplify_ios_spm
255
284
- build_amplify_macos_spm
285
+ - build_amplify_tvos_spm
286
+ - build_amplify_watchos_spm
256
287
- ios_unit_test_amplify
257
288
- ios_unit_test_awspluginscore
258
289
- ios_unit_test_analytics
@@ -275,6 +306,28 @@ deploy_requires: &deploy_requires
275
306
- macos_unit_test_push_notifications
276
307
- macos_unit_test_storage
277
308
- macos_unit_test_predictions
309
+ - tvos_unit_test_amplify
310
+ - tvos_unit_test_awspluginscore
311
+ - tvos_unit_test_analytics
312
+ - tvos_unit_test_api
313
+ - tvos_unit_test_auth
314
+ - tvos_unit_test_datastore
315
+ - tvos_unit_test_geo
316
+ - tvos_unit_test_internal_pinpoint
317
+ - tvos_unit_test_push_notifications
318
+ - tvos_unit_test_storage
319
+ - tvos_unit_test_predictions
320
+ - watchos_unit_test_amplify
321
+ - watchos_unit_test_awspluginscore
322
+ - watchos_unit_test_analytics
323
+ - watchos_unit_test_api
324
+ - watchos_unit_test_auth
325
+ - watchos_unit_test_datastore
326
+ - watchos_unit_test_geo
327
+ - watchos_unit_test_internal_pinpoint
328
+ - watchos_unit_test_push_notifications
329
+ - watchos_unit_test_storage
330
+ - watchos_unit_test_predictions
278
331
- fortify_scan
279
332
280
333
workflows :
@@ -292,6 +345,12 @@ workflows:
292
345
- build_amplify_macos_spm :
293
346
requires :
294
347
- fortify_scan
348
+ - build_amplify_tvos_spm :
349
+ requires :
350
+ - fortify_scan
351
+ - build_amplify_watchos_spm :
352
+ requires :
353
+ - fortify_scan
295
354
- unit_test :
296
355
name : ios_unit_test_amplify
297
356
scheme : Amplify
@@ -446,6 +505,182 @@ workflows:
446
505
destination : << pipeline.parameters.macos-destination >>
447
506
requires :
448
507
- build_amplify_macos_spm
508
+ - unit_test :
509
+ name : tvos_unit_test_amplify
510
+ scheme : Amplify
511
+ sdk : appletvsimulator
512
+ destination : << pipeline.parameters.tvos-destination >>
513
+ xcode-version : ' 14.3.0'
514
+ requires :
515
+ - build_amplify_tvos_spm
516
+ - unit_test :
517
+ name : tvos_unit_test_awspluginscore
518
+ scheme : AWSPluginsCore
519
+ sdk : appletvsimulator
520
+ destination : << pipeline.parameters.tvos-destination >>
521
+ xcode-version : ' 14.3.0'
522
+ requires :
523
+ - build_amplify_tvos_spm
524
+ - unit_test :
525
+ name : tvos_unit_test_analytics
526
+ scheme : AWSPinpointAnalyticsPlugin
527
+ sdk : appletvsimulator
528
+ destination : << pipeline.parameters.tvos-destination >>
529
+ xcode-version : ' 14.3.0'
530
+ requires :
531
+ - build_amplify_tvos_spm
532
+ - unit_test :
533
+ name : tvos_unit_test_api
534
+ scheme : AWSAPIPlugin
535
+ sdk : appletvsimulator
536
+ destination : << pipeline.parameters.tvos-destination >>
537
+ xcode-version : ' 14.3.0'
538
+ requires :
539
+ - build_amplify_tvos_spm
540
+ - unit_test :
541
+ name : tvos_unit_test_auth
542
+ scheme : AWSCognitoAuthPlugin
543
+ sdk : appletvsimulator
544
+ destination : << pipeline.parameters.tvos-destination >>
545
+ xcode-version : ' 14.3.0'
546
+ requires :
547
+ - build_amplify_tvos_spm
548
+ - unit_test :
549
+ name : tvos_unit_test_datastore
550
+ scheme : AWSDataStorePlugin
551
+ sdk : appletvsimulator
552
+ destination : << pipeline.parameters.tvos-destination >>
553
+ xcode-version : ' 14.3.0'
554
+ requires :
555
+ - build_amplify_tvos_spm
556
+ - unit_test :
557
+ name : tvos_unit_test_geo
558
+ scheme : AWSLocationGeoPlugin
559
+ sdk : appletvsimulator
560
+ destination : << pipeline.parameters.tvos-destination >>
561
+ xcode-version : ' 14.3.0'
562
+ requires :
563
+ - build_amplify_tvos_spm
564
+ - unit_test :
565
+ name : tvos_unit_test_internal_pinpoint
566
+ scheme : InternalAWSPinpointUnitTests
567
+ sdk : appletvsimulator
568
+ destination : << pipeline.parameters.tvos-destination >>
569
+ xcode-version : ' 14.3.0'
570
+ requires :
571
+ - build_amplify_tvos_spm
572
+ - unit_test :
573
+ name : tvos_unit_test_push_notifications
574
+ scheme : AWSPinpointPushNotificationsPlugin
575
+ sdk : appletvsimulator
576
+ destination : << pipeline.parameters.tvos-destination >>
577
+ xcode-version : ' 14.3.0'
578
+ requires :
579
+ - build_amplify_tvos_spm
580
+ - unit_test :
581
+ name : tvos_unit_test_storage
582
+ scheme : AWSS3StoragePlugin
583
+ sdk : appletvsimulator
584
+ destination : << pipeline.parameters.tvos-destination >>
585
+ xcode-version : ' 14.3.0'
586
+ requires :
587
+ - build_amplify_tvos_spm
588
+ - unit_test :
589
+ name : tvos_unit_test_predictions
590
+ scheme : AWSPredictionsPlugin
591
+ sdk : appletvsimulator
592
+ destination : << pipeline.parameters.tvos-destination >>
593
+ xcode-version : ' 14.3.0'
594
+ requires :
595
+ - build_amplify_tvos_spm
596
+ - unit_test :
597
+ name : watchos_unit_test_amplify
598
+ scheme : Amplify
599
+ sdk : watchsimulator
600
+ destination : << pipeline.parameters.watchos-destination >>
601
+ xcode-version : ' 14.3.0'
602
+ requires :
603
+ - build_amplify_watchos_spm
604
+ - unit_test :
605
+ name : watchos_unit_test_awspluginscore
606
+ scheme : AWSPluginsCore
607
+ sdk : watchsimulator
608
+ destination : << pipeline.parameters.watchos-destination >>
609
+ xcode-version : ' 14.3.0'
610
+ requires :
611
+ - build_amplify_watchos_spm
612
+ - unit_test :
613
+ name : watchos_unit_test_analytics
614
+ scheme : AWSPinpointAnalyticsPlugin
615
+ sdk : watchsimulator
616
+ destination : << pipeline.parameters.watchos-destination >>
617
+ xcode-version : ' 14.3.0'
618
+ requires :
619
+ - build_amplify_watchos_spm
620
+ - unit_test :
621
+ name : watchos_unit_test_api
622
+ scheme : AWSAPIPlugin
623
+ sdk : watchsimulator
624
+ destination : << pipeline.parameters.watchos-destination >>
625
+ xcode-version : ' 14.3.0'
626
+ requires :
627
+ - build_amplify_watchos_spm
628
+ - unit_test :
629
+ name : watchos_unit_test_auth
630
+ scheme : AWSCognitoAuthPlugin
631
+ sdk : watchsimulator
632
+ destination : << pipeline.parameters.watchos-destination >>
633
+ xcode-version : ' 14.3.0'
634
+ requires :
635
+ - build_amplify_watchos_spm
636
+ - unit_test :
637
+ name : watchos_unit_test_datastore
638
+ scheme : AWSDataStorePlugin
639
+ sdk : watchsimulator
640
+ destination : << pipeline.parameters.watchos-destination >>
641
+ xcode-version : ' 14.3.0'
642
+ requires :
643
+ - build_amplify_watchos_spm
644
+ - unit_test :
645
+ name : watchos_unit_test_geo
646
+ scheme : AWSLocationGeoPlugin
647
+ sdk : watchsimulator
648
+ destination : << pipeline.parameters.watchos-destination >>
649
+ xcode-version : ' 14.3.0'
650
+ requires :
651
+ - build_amplify_watchos_spm
652
+ - unit_test :
653
+ name : watchos_unit_test_internal_pinpoint
654
+ scheme : InternalAWSPinpointUnitTests
655
+ sdk : watchsimulator
656
+ destination : << pipeline.parameters.watchos-destination >>
657
+ xcode-version : ' 14.3.0'
658
+ requires :
659
+ - build_amplify_watchos_spm
660
+ - unit_test :
661
+ name : watchos_unit_test_push_notifications
662
+ scheme : AWSPinpointPushNotificationsPlugin
663
+ sdk : watchsimulator
664
+ destination : << pipeline.parameters.watchos-destination >>
665
+ xcode-version : ' 14.3.0'
666
+ requires :
667
+ - build_amplify_watchos_spm
668
+ - unit_test :
669
+ name : watchos_unit_test_storage
670
+ scheme : AWSS3StoragePlugin
671
+ sdk : watchsimulator
672
+ destination : << pipeline.parameters.watchos-destination >>
673
+ xcode-version : ' 14.3.0'
674
+ requires :
675
+ - build_amplify_watchos_spm
676
+ - unit_test :
677
+ name : watchos_unit_test_predictions
678
+ scheme : AWSPredictionsPlugin
679
+ sdk : watchsimulator
680
+ destination : << pipeline.parameters.watchos-destination >>
681
+ xcode-version : ' 14.3.0'
682
+ requires :
683
+ - build_amplify_watchos_spm
449
684
- deploy :
450
685
name : deploy unstable
451
686
<< : *deploy_requires
0 commit comments