Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(SDKRLSD-736): release 2.4.1 #79

Merged
merged 4 commits into from
Mar 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci/cd: clear cache
  • Loading branch information
bang9 committed Mar 24, 2023
commit d7b5406eb011ed89d5f2e9c45788519e51644487
19 changes: 10 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
### Aliases
aliases:
- &restore_node_modules_base
key: yarn-base-{{ arch }}-{{ checksum "yarn.lock" }}-v2
key: v{{ .Environment.CACHE_VERSION }}-yarn-base-{{ arch }}-{{ checksum "yarn.lock" }}
- &restore_node_modules_packages
key: yarn-packages-{{ arch }}-{{ checksum "yarn.lock" }}-v2
key: v{{ .Environment.CACHE_VERSION }}-yarn-packages-{{ arch }}-{{ checksum "yarn.lock" }}
- &install_node_modules
name: Install node_modules
command: yarn install --frozen-lockfiles
- &save_node_modules_base
key: yarn-base-{{ arch }}-{{ checksum "yarn.lock" }}-v2
key: v{{ .Environment.CACHE_VERSION }}-yarn-base-{{ arch }}-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- node_modules
- &save_node_modules_packages
key: yarn-packages-{{ arch }}-{{ checksum "yarn.lock" }}-v2
key: v{{ .Environment.CACHE_VERSION }}-yarn-packages-{{ arch }}-{{ checksum "yarn.lock" }}
paths:
- sample/node_modules
- packages/uikit-chat-hooks/node_modules
Expand All @@ -25,8 +25,9 @@ aliases:
command: echo "export const APP_ID = '${SENDBIRD_APP_ID}';" >> sample/src/env.ts

### Circle CI
# https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
# https://circleci.com/docs/2.0/testing-ios/#supported-xcode-versions
# Built-in env vars - https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
# Xcode versions - https://circleci.com/docs/2.0/testing-ios/#supported-xcode-versions
# Cache key template - https://circleci.com/docs/caching/#using-keys-and-templates
version: 2.1
orbs:
ruby: circleci/[email protected]
Expand All @@ -48,21 +49,21 @@ jobs:
- macos/switch-ruby:
version: '2.7.6'
- ruby/install-deps:
key: gems-ios
key: v{{ .Environment.CACHE_VERSION }}-gems-ios
app-dir: ./sample/ios
- restore_cache: *restore_node_modules_base
- restore_cache: *restore_node_modules_packages
- run: *install_node_modules
- save_cache: *save_node_modules_base
- save_cache: *save_node_modules_packages
- restore_cache:
key: pods-{{ arch }}-{{ checksum "sample/ios/Podfile.lock" }}-v2
key: v{{ .Environment.CACHE_VERSION }}-pods-{{ arch }}-{{ checksum "sample/ios/Podfile.lock" }}
- run:
name: Install pods
working_directory: sample/ios
command: bundle exec pod install
- save_cache:
key: pods-{{ arch }}-{{ checksum "sample/ios/Podfile.lock" }}-v2
key: v{{ .Environment.CACHE_VERSION }}-pods-{{ arch }}-{{ checksum "sample/ios/Podfile.lock" }}
paths:
- sample/ios/Pods
- run: *create_app_env
Expand Down