1
1
# ## Aliases
2
2
aliases :
3
3
- &restore_node_modules_base
4
- key : yarn-base-{{ arch }}-{{ checksum "yarn.lock" }}-v1
4
+ key : v{{ .Environment.CACHE_VERSION }}- yarn-base-{{ arch }}-{{ checksum "yarn.lock" }}
5
5
- &restore_node_modules_packages
6
- key : yarn-packages-{{ arch }}-{{ checksum "yarn.lock" }}-v1
6
+ key : v{{ .Environment.CACHE_VERSION }}- yarn-packages-{{ arch }}-{{ checksum "yarn.lock" }}
7
7
- &install_node_modules
8
- name : Install node_modules
9
- command : yarn install --frozen-lockfiles
8
+ name : Install node_modules
9
+ command : yarn install --frozen-lockfiles
10
10
- &save_node_modules_base
11
- key : yarn-base-{{ arch }}-{{ checksum "yarn.lock" }}-v1
12
- paths :
13
- - ~/.cache/yarn
14
- - node_modules
11
+ key : v{{ .Environment.CACHE_VERSION }}- yarn-base-{{ arch }}-{{ checksum "yarn.lock" }}
12
+ paths :
13
+ - ~/.cache/yarn
14
+ - node_modules
15
15
- &save_node_modules_packages
16
- key : yarn-packages-{{ arch }}-{{ checksum "yarn.lock" }}-v1
17
- paths :
18
- - sample/node_modules
19
- - packages/uikit-chat-hooks/node_modules
20
- - packages/uikit-react-native/node_modules
21
- - packages/uikit-react-native-foundation/node_modules
22
- - packages/uikit-utils/node_modules
16
+ key : v{{ .Environment.CACHE_VERSION }}- yarn-packages-{{ arch }}-{{ checksum "yarn.lock" }}
17
+ paths :
18
+ - sample/node_modules
19
+ - packages/uikit-chat-hooks/node_modules
20
+ - packages/uikit-react-native/node_modules
21
+ - packages/uikit-react-native-foundation/node_modules
22
+ - packages/uikit-utils/node_modules
23
23
- &create_app_env
24
- name : Create env.ts
25
- command : echo "export const APP_ID = '${SENDBIRD_APP_ID}';" >> sample/src/env.ts
24
+ name : Create env.ts
25
+ command : echo "export const APP_ID = '${SENDBIRD_APP_ID}';" >> sample/src/env.ts
26
26
27
27
# ## Circle CI
28
- # https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
29
- # https://circleci.com/docs/2.0/testing-ios/#supported-xcode-versions
28
+ # Built-in env vars - https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
29
+ # Xcode versions - https://circleci.com/docs/2.0/testing-ios/#supported-xcode-versions
30
+ # Cache key template - https://circleci.com/docs/caching/#using-keys-and-templates
30
31
version : 2.1
31
32
orbs :
32
33
33
34
macos : circleci/macos@2
35
+
34
36
parameters :
35
37
platform :
36
38
type : enum
@@ -40,28 +42,28 @@ parameters:
40
42
jobs :
41
43
deploy-ios :
42
44
macos :
43
- xcode : 13.3 .0
44
- resource_class : large
45
+ xcode : 14.1 .0
46
+ resource_class : macos.x86.medium.gen2
45
47
steps :
46
48
- checkout
47
49
- macos/switch-ruby :
48
- version : ' 2.7.5 '
50
+ version : ' 2.7.6 '
49
51
- ruby/install-deps :
50
- key : gems-ios
52
+ key : v{{ .Environment.CACHE_VERSION }}- gems-ios
51
53
app-dir : ./sample/ios
52
54
- restore_cache : *restore_node_modules_base
53
55
- restore_cache : *restore_node_modules_packages
54
56
- run : *install_node_modules
55
57
- save_cache : *save_node_modules_base
56
58
- save_cache : *save_node_modules_packages
57
59
- restore_cache :
58
- key : pods-{{ arch }}-{{ checksum "sample/ios/Podfile.lock" }}
60
+ key : v{{ .Environment.CACHE_VERSION }}- pods-{{ arch }}-{{ checksum "sample/ios/Podfile.lock" }}
59
61
- run :
60
62
name : Install pods
61
63
working_directory : sample/ios
62
64
command : bundle exec pod install
63
65
- save_cache :
64
- key : pods-{{ arch }}-{{ checksum "sample/ios/Podfile.lock" }}
66
+ key : v{{ .Environment.CACHE_VERSION }}- pods-{{ arch }}-{{ checksum "sample/ios/Podfile.lock" }}
65
67
paths :
66
68
- sample/ios/Pods
67
69
- run : *create_app_env
87
89
steps :
88
90
- checkout
89
91
- ruby/install :
90
- version : ' 2.7.5 '
92
+ version : ' 2.7.6 '
91
93
- ruby/install-deps :
92
94
key : gems-android
93
95
app-dir : ./sample/android
0 commit comments