From bb4ca899b158422b0a9b847fe4d66cc72496c258 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 7 Aug 2023 09:40:58 -0700 Subject: [PATCH] Fix caching paths for Gradle after the monorepo migration (#38821) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38821 I've just realized that the caching of 3rd party native dependencies is broken for Android, so we re-download them every time. This fixes it by specifying the correct paths where the zip files are stored. Changelog: [Internal] [Changed] - Fix caching paths for Gradle after the monorepo migration Reviewed By: cipolleschi Differential Revision: D48116655 fbshipit-source-id: 5a8ba65ef9b006be197b135f8dbf60372483f726 --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 460275bccd8..4b2169dc039 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -61,7 +61,7 @@ references: cache_keys: checkout_cache_key: &checkout_cache_key v1-checkout gems_cache_key: &gems_cache_key v1-gems-{{ checksum "Gemfile.lock" }} - gradle_cache_key: &gradle_cache_key v1-gradle-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "packages/react-native/ReactAndroid/gradle.properties" }} + gradle_cache_key: &gradle_cache_key v2-gradle-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "packages/react-native/ReactAndroid/gradle.properties" }} yarn_cache_key: &yarn_cache_key v5-yarn-cache-{{ .Environment.CIRCLE_JOB }} rbenv_cache_key: &rbenv_cache_key v1-rbenv-{{ checksum "/tmp/required_ruby" }} hermes_workspace_cache_key: &hermes_workspace_cache_key v5-hermes-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/hermes/hermesversion" }} @@ -302,8 +302,8 @@ commands: - save_cache: paths: - ~/.gradle - - ReactAndroid/build/downloads - - ReactAndroid/build/third-party-ndk + - packages/react-native/ReactAndroid/build/downloads + - packages/react-native/ReactAndroid/build/third-party-ndk key: *gradle_cache_key run_e2e: