Skip to content

Commit f398365

Browse files
authored
Cache by Xcode version (#382)
1 parent 6ee89e8 commit f398365

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ commands:
4747
save-cache-detox-env:
4848
steps:
4949
- save_cache:
50-
key: detox-env-{{ .Environment.CACHE_VERSION }}-{{ arch }}-{{ .Environment.XCODE_VERSION }}-{{ .Environment.CIRCLE_WORKING_DIRECTORY }}
50+
key: detox-env-{{ .Environment.CACHE_VERSION }}-{{ arch }}-{{ checksum "/usr/bin/xcodebuild" }}-{{ .Environment.CIRCLE_WORKING_DIRECTORY }}
5151
paths:
5252
- /usr/local/Homebrew
5353
- ~/Library/Caches/Homebrew
@@ -56,7 +56,7 @@ commands:
5656
- restore_cache:
5757
name: Restoring Detox Env Cache
5858
keys:
59-
- detox-env-{{ .Environment.CACHE_VERSION }}-{{ arch }}-{{ .Environment.XCODE_VERSION }}-{{ .Environment.CIRCLE_WORKING_DIRECTORY }}
59+
- detox-env-{{ .Environment.CACHE_VERSION }}-{{ arch }}-{{ checksum "/usr/bin/xcodebuild" }}-{{ .Environment.CIRCLE_WORKING_DIRECTORY }}
6060
save-cache-detox-app:
6161
steps:
6262
- save_cache:
@@ -112,6 +112,7 @@ commands:
112112
command: |
113113
detox clean-framework-cache && detox build-framework-cache
114114
- save-cache-detox-env
115+
115116
install-node:
116117
steps:
117118
- node/install:

0 commit comments

Comments
 (0)