This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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