@@ -213,7 +213,30 @@ jobs:
213
213
paths :
214
214
- ~/repo/.amplify-pkg-version
215
215
216
- build_pkg_binaries :
216
+ upload_pkg_binaries :
217
+ << : *linux-e2e-executor
218
+ steps :
219
+ - restore_cache :
220
+ key : amplify-cli-repo-{{ .Branch }}-{{ .Revision }}
221
+ - restore_cache :
222
+ key : amplify-pkg-binaries-linux-{{ .Branch }}-{{ .Revision }}
223
+ - restore_cache :
224
+ key : amplify-pkg-binaries-macos-{{ .Branch }}-{{ .Revision }}
225
+ - restore_cache :
226
+ key : amplify-pkg-binaries-win-{{ .Branch }}-{{ .Revision }}
227
+ - restore_cache :
228
+ key : amplify-pkg-binaries-arm-{{ .Branch }}-{{ .Revision }}
229
+ - run :
230
+ name : Consolidate binaries cache and upload
231
+ command : |
232
+ source .circleci/local_publish_helpers.sh
233
+ uploadPkgCli
234
+ - save_cache :
235
+ key : amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }}
236
+ paths :
237
+ - ~/repo/out
238
+
239
+ build_pkg_binaries_linux :
217
240
<< : *linux-e2e-executor
218
241
steps :
219
242
- restore_cache :
@@ -229,14 +252,101 @@ jobs:
229
252
startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
230
253
setNpmRegistryUrlToLocal
231
254
changeNpmGlobalPath
232
- generatePkgCli
255
+ generatePkgCli linux
233
256
unsetNpmRegistryUrl
234
- uploadPkgCli
235
257
- save_cache :
236
- key : amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }}
258
+ key : amplify-pkg-binaries-linux-{{ .Branch }}-{{ .Revision }}
259
+ paths :
260
+ - ~/repo/out
261
+
262
+ build_pkg_binaries_macos :
263
+ << : *linux-e2e-executor
264
+ steps :
265
+ - restore_cache :
266
+ key : amplify-cli-repo-{{ .Branch }}-{{ .Revision }}
267
+ - restore_cache :
268
+ key : amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
269
+ - restore_cache :
270
+ key : amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}
271
+ - run :
272
+ name : Start verdaccio and package CLI
273
+ command : |
274
+ source .circleci/local_publish_helpers.sh
275
+ startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
276
+ setNpmRegistryUrlToLocal
277
+ changeNpmGlobalPath
278
+ generatePkgCli macos
279
+ unsetNpmRegistryUrl
280
+ - save_cache :
281
+ key : amplify-pkg-binaries-macos-{{ .Branch }}-{{ .Revision }}
237
282
paths :
238
283
- ~/repo/out
239
284
285
+ build_pkg_binaries_win :
286
+ << : *linux-e2e-executor
287
+ steps :
288
+ - restore_cache :
289
+ key : amplify-cli-repo-{{ .Branch }}-{{ .Revision }}
290
+ - restore_cache :
291
+ key : amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
292
+ - restore_cache :
293
+ key : amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}
294
+ - run :
295
+ name : Start verdaccio and package CLI
296
+ command : |
297
+ source .circleci/local_publish_helpers.sh
298
+ startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
299
+ setNpmRegistryUrlToLocal
300
+ changeNpmGlobalPath
301
+ generatePkgCli win
302
+ unsetNpmRegistryUrl
303
+ - save_cache :
304
+ key : amplify-pkg-binaries-win-{{ .Branch }}-{{ .Revision }}
305
+ paths :
306
+ - ~/repo/out
307
+
308
+ build_pkg_binaries_arm :
309
+ << : *linux-e2e-executor
310
+ steps :
311
+ - restore_cache :
312
+ key : amplify-cli-repo-{{ .Branch }}-{{ .Revision }}
313
+ - restore_cache :
314
+ key : amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
315
+ - restore_cache :
316
+ key : amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}
317
+ - run :
318
+ name : Start verdaccio and package CLI
319
+ command : |
320
+ source .circleci/local_publish_helpers.sh
321
+ startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
322
+ setNpmRegistryUrlToLocal
323
+ changeNpmGlobalPath
324
+ generatePkgCli arm
325
+ unsetNpmRegistryUrl
326
+ - save_cache :
327
+ key : amplify-pkg-binaries-arm-{{ .Branch }}-{{ .Revision }}
328
+ paths :
329
+ - ~/repo/out
330
+
331
+ verify_pkg_binaries :
332
+ << : *linux-e2e-executor
333
+ steps :
334
+ - restore_cache :
335
+ key : amplify-cli-repo-{{ .Branch }}-{{ .Revision }}
336
+ - restore_cache :
337
+ key : amplify-pkg-binaries-linux-{{ .Branch }}-{{ .Revision }}
338
+ - restore_cache :
339
+ key : amplify-pkg-binaries-macos-{{ .Branch }}-{{ .Revision }}
340
+ - restore_cache :
341
+ key : amplify-pkg-binaries-win-{{ .Branch }}-{{ .Revision }}
342
+ - restore_cache :
343
+ key : amplify-pkg-binaries-arm-{{ .Branch }}-{{ .Revision }}
344
+ - run :
345
+ name : Verify packaged CLI
346
+ command : |
347
+ source .circleci/local_publish_helpers.sh
348
+ verifyPkgCli
349
+
240
350
graphql_e2e_tests :
241
351
<< : *defaults
242
352
steps :
@@ -748,7 +858,7 @@ workflows:
748
858
- /tagged-release\/.*/
749
859
- /run-e2e\/.*/
750
860
requires :
751
- - build_pkg_binaries
861
+ - upload_pkg_binaries
752
862
- integration_test :
753
863
context :
754
864
- e2e-test-context
@@ -762,6 +872,9 @@ workflows:
762
872
requires :
763
873
- build
764
874
- publish_to_local_registry :
875
+ requires :
876
+ - build
877
+ - upload_pkg_binaries :
765
878
filters :
766
879
branches :
767
880
only :
@@ -772,19 +885,37 @@ workflows:
772
885
- /tagged-release\/.*/
773
886
- /tagged-release-without-e2e-tests\/.*/
774
887
- /run-e2e\/.*/
775
- requires :
776
- - build
777
- - build_pkg_binaries :
778
888
context :
779
889
- e2e-auth-credentials
780
890
- e2e-test-context
781
891
- amplify-s3-upload
892
+ requires :
893
+ - build_pkg_binaries_linux
894
+ - build_pkg_binaries_macos
895
+ - build_pkg_binaries_win
896
+ - build_pkg_binaries_arm
897
+ - build_pkg_binaries_linux :
898
+ requires :
899
+ - publish_to_local_registry
900
+ - build_pkg_binaries_macos :
901
+ requires :
902
+ - publish_to_local_registry
903
+ - build_pkg_binaries_win :
782
904
requires :
783
905
- publish_to_local_registry
906
+ - build_pkg_binaries_arm :
907
+ requires :
908
+ - publish_to_local_registry
909
+ - verify_pkg_binaries :
910
+ requires :
911
+ - build_pkg_binaries_linux
912
+ - build_pkg_binaries_macos
913
+ - build_pkg_binaries_win
914
+ - build_pkg_binaries_arm
784
915
- amplify_sudo_install_test :
785
916
context : amplify-ecr-image-pull
786
917
requires :
787
- - build_pkg_binaries
918
+ - upload_pkg_binaries
788
919
filters :
789
920
branches :
790
921
only :
@@ -817,7 +948,7 @@ workflows:
817
948
- /tagged-release\/.*/
818
949
- /run-e2e\/.*/
819
950
requires :
820
- - build_pkg_binaries
951
+ - upload_pkg_binaries
821
952
- build_windows_workspace_for_e2e
822
953
- amplify_migration_tests_v6 :
823
954
context :
@@ -832,7 +963,7 @@ workflows:
832
963
- /tagged-release\/.*/
833
964
- /run-e2e\/.*/
834
965
requires :
835
- - build_pkg_binaries
966
+ - upload_pkg_binaries
836
967
- amplify_migration_tests_v5 :
837
968
context :
838
969
- e2e-auth-credentials
@@ -846,7 +977,7 @@ workflows:
846
977
- /tagged-release\/.*/
847
978
- /run-e2e\/.*/
848
979
requires :
849
- - build_pkg_binaries
980
+ - upload_pkg_binaries
850
981
- amplify_migration_tests_non_multi_env_layers :
851
982
context :
852
983
- e2e-auth-credentials
@@ -860,7 +991,7 @@ workflows:
860
991
- /tagged-release\/.*/
861
992
- /run-e2e\/.*/
862
993
requires :
863
- - build_pkg_binaries
994
+ - upload_pkg_binaries
864
995
- amplify_migration_tests_multi_env_layers :
865
996
context :
866
997
- e2e-auth-credentials
@@ -874,7 +1005,7 @@ workflows:
874
1005
- /tagged-release\/.*/
875
1006
- /run-e2e\/.*/
876
1007
requires :
877
- - build_pkg_binaries
1008
+ - upload_pkg_binaries
878
1009
- amplify_console_integration_tests :
879
1010
context :
880
1011
- e2e-auth-credentials
@@ -886,11 +1017,11 @@ workflows:
886
1017
only :
887
1018
- dev
888
1019
requires :
889
- - build_pkg_binaries
1020
+ - upload_pkg_binaries
890
1021
- github_prerelease :
891
1022
context : github-publish
892
1023
requires :
893
- - build_pkg_binaries
1024
+ - upload_pkg_binaries
894
1025
filters :
895
1026
branches :
896
1027
only :
@@ -949,7 +1080,7 @@ workflows:
949
1080
- amplify_migration_tests_non_multi_env_layers
950
1081
- amplify_migration_tests_multi_env_layers
951
1082
- github_prerelease_install_sanity_check
952
- - build_pkg_binaries
1083
+ - upload_pkg_binaries
953
1084
filters :
954
1085
branches :
955
1086
only :
0 commit comments