Skip to content

Instantly share code, notes, and snippets.

@alistairsykes
Created December 2, 2019 14:19
Show Gist options
  • Save alistairsykes/63140145b05cb77ea0b2d508f23e5b0e to your computer and use it in GitHub Desktop.
Save alistairsykes/63140145b05cb77ea0b2d508f23e5b0e to your computer and use it in GitHub Desktop.
working_directory: ~/workspace
macos:
xcode: "10.2.1"
steps:
- install_android_sdk
- checkout
- checksum
- restore_cache:
key: gradle-{{ arch }}-{{ checksum "/tmp/checksum.txt" }}
- restore_cache:
key: konan-{{ arch }}-{{ checksum "/tmp/checksum.txt" }}
- run:
name: Create Framework
command: ./gradlew releaseFatFramework
- save_cache:
paths:
- ~/.gradle
key: gradle-{{ arch }}-{{ checksum "/tmp/checksum.txt" }}
- save_cache:
paths:
- ~/.konan
key: konan-{{ arch }}-{{ checksum "/tmp/checksum.txt" }}
- install_hub
- run:
name: Commit into iOS project
command: |
git config --global user.name "CircleCi"
git config --global user.email REDACTED
mkdir -p ~/workspace/Project_Framework/
git clone $FRAMEWORK_GIT_URL ~/workspace/Project_Framework/
cd ~/workspace/Project_Framework/
git checkout -b shared-update
rm -r -f $FRAMEWORK_PATH/shared.framework
mkdir -p $FRAMEWORK_PATH
cp -r ~/workspace/shared/build/fat-framework/release/shared.framework $FRAMEWORK_PATH/shared.framework
git add $FRAMEWORK_PATH/shared.framework
git commit -m "Updated the shared.framework. Build: $CIRCLE_BUILD_NUM"
git push -u origin shared-update
hub pull-request --no-edit
- store_artifacts:
path: shared/build/fat-framework
destination: fat-framework
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment