From 32667ef088389f46dcc5b635ca293e4bbb5d694a Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 26 Jan 2023 16:23:10 -0300 Subject: [PATCH] Try to save iOS build cache --- .circleci/config.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d6b557a68..c4a6cd71c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -474,6 +474,11 @@ jobs: - checkout - restore_cache: *restore-gems-cache - restore_cache: *restore-npm-cache-mac + - restore_cache: + keys: + - >- + ios-build-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ .Environment.CACHE_VERSION }} + name: Restoring iOS Build caches - run: *install-npm-modules - run: *update-fastlane-ios - save_cache: *save-npm-cache-mac @@ -485,12 +490,22 @@ jobs: brew tap wix/brew brew install applesimutils - run: - name: Run Detox Tests + name: Build command: | /usr/libexec/PlistBuddy -c "Set :bugsnag:apiKey $BUGSNAG_KEY" ./ios/RocketChatRN/Info.plist /usr/libexec/PlistBuddy -c "Set :bugsnag:apiKey $BUGSNAG_KEY" ./ios/ShareRocketChatRN/Info.plist yarn detox build --configuration ios.sim.release yarn detox test --configuration ios.sim.release --cleanup --headless + - save_cache: + key: >- + ios-build-cache-{{ arch }}-{{ checksum "~/.tmp/checksumfiles/package.json" }}-{{ .Environment.CACHE_VERSION }} + name: Saving iOS Build Cache + paths: + - ios/build/Build + - run: + name: Run tests + command: | + yarn detox test --configuration ios.sim.release --cleanup --headless ios-build-official: executor: mac-env