Circle CI: do not share .git cache across different operating systems (#34885)
Circle CI: do not share .git cache across different operating systems (#34885)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/34885

We use workflows extensively in Circle CI, so caching a git checkout should help speed up tests when downstream jobs need to checkout the repository. In the current configuration, the Windows job is most likely to run and write to the .git cache first, which results in permission issues when the .git cache is loaded onto macOS or linux hosts.

By splitting the cache by architecture, we may lose on some reusability across jobs with distinct architectures, but it ensures we avoid cross-platform permission issues.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D40150781

fbshipit-source-id: 4a4b2a4da5e20f754b72db0c9852c7c1616b610c

facebook/react-native,javache/react-native,facebook/react-native,facebook/react-native,facebook/react-native,javache/react-native,facebook/react-native,javache/react-native,javache/react-native,javache/react-native,facebook/react-native,javache/react-native,javache/react-native,facebook/react-native,javache/react-native,facebook/react-native,javache/react-native,facebook/react-native