Skip to content

Commit

Permalink
CI Jobs re-run per environment (#663)
Browse files Browse the repository at this point in the history
Supports the ability to rerun only failed tasks. It recreates the cluster and applications in case they were deleted.
  • Loading branch information
desistefanova authored Jul 4, 2022
1 parent f37b478 commit 2b992be
Show file tree
Hide file tree
Showing 13 changed files with 427 additions and 186 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/binary-combine-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Android Build Combine

on:
workflow_call:

jobs:
build-android-combined:
name: Combine Android binaries
runs-on: ubuntu-latest
steps:
- name: Fetch x86 build
uses: actions/download-artifact@v2
with:
name: librealm-android-x86
path: binary/android
- name: Fetch x86_64 build
uses: actions/download-artifact@v2
with:
name: librealm-android-x86_64
path: binary/android
- name: Fetch armeabi-v7a build
uses: actions/download-artifact@v2
with:
name: librealm-android-armeabi-v7a
path: binary/android
- name: Fetch arm64-v8a build
uses: actions/download-artifact@v2
with:
name: librealm-android-arm64-v8a
path: binary/android

- name: Store combined artifact
uses: actions/upload-artifact@v2
with:
name: librealm-android
path: binary/android
retention-days: 1

- name: Delete individual build artifacts
uses: geekyeggo/delete-artifact@v1
with:
name: |
librealm-android-x86
librealm-android-x86_64
librealm-android-armeabi-v7a
librealm-android-arm64-v8a
50 changes: 50 additions & 0 deletions .github/workflows/binary-combine-ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: IOS Build Combine

on:
workflow_call:

jobs:
build-ios-xcframework:
name: Combine .xcframework
runs-on: macos-latest

steps:
- name: Fetch device build
uses: actions/download-artifact@v2
with:
name: librealm-ios-device
path: binary/ios
- name: Fetch simulator build
uses: actions/download-artifact@v2
with:
name: librealm-ios-simulator
path: binary/ios
- name: Fetch catalyst build
uses: actions/download-artifact@v2
with:
name: librealm-ios-catalyst
path: binary/ios

- name: Build .xcframework
run: |
xcodebuild -create-xcframework \
-framework ./binary/ios/Release-iphoneos/realm_dart.framework \
-framework ./binary/ios/Release-iphonesimulator/realm_dart.framework \
-framework ./binary/ios/Release-maccatalyst/realm_dart.framework \
-output ./binary/ios/realm_dart.xcframework
rm -rf ./binary/ios/Release-*
- name: Store .xcframework artifact
uses: actions/upload-artifact@v2
with:
name: librealm-ios
path: binary/ios
retention-days: 1

- name: Delete individual framework artifacts
uses: geekyeggo/delete-artifact@v1
with:
name: |
librealm-ios-device
librealm-ios-simulator
librealm-ios-catalyst
Loading

0 comments on commit 2b992be

Please sign in to comment.