Try to save iOS build cache

This commit is contained in:
Diego Mello 2023-01-26 16:23:10 -03:00
parent f4f7d2c9eb
commit 32667ef088
1 changed files with 16 additions and 1 deletions

View File

@ -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