ci: Update the xcode-version
from 14.2 to 14.3.1 everywhere
#187
Workflow file for this run
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
name: Build BankSDK XCFrameworks | |
on: | |
push: | |
tags: | |
- 'Test-XCFramework' | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
prepare-frameworks: | |
name: Create Release | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Mint | |
uses: fabasoad/setup-mint-action@main | |
- name: Setup swift-create-xcframework | |
run: | | |
/usr/local/bin/brew install mint | |
/usr/local/bin/mint install unsignedapps/[email protected] | |
- name: GiniBankSDKPinning Project File | |
run: | | |
cd BankSDK/GiniBankSDKPinning | |
/usr/local/bin/mint run swift-create-xcframework | |
- name: setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2.0' | |
bundler-cache: true | |
- name: Add resources to BankSDK target for generated Xcode project | |
uses: maierj/[email protected] | |
with: | |
lane: 'add_resources' | |
options: > | |
{ | |
"project_path": "../BankSDK/GiniBankSDKPinning/.build/swift-create-xcframework/GiniBankSDKPinning.xcodeproj", | |
"resource_name": "BankSDKResources", | |
"target_name": "GiniBankSDK", | |
"resources_path": "../BankSDK/GiniBankSDK/Sources/GiniBankSDK/Resources", | |
"ci": "true" | |
} | |
- name: Add resources to CaptureSDK target for generated Xcode project | |
uses: maierj/[email protected] | |
with: | |
lane: 'add_resources' | |
options: > | |
{ | |
"project_path": "../BankSDK/GiniBankSDKPinning/.build/swift-create-xcframework/GiniBankSDKPinning.xcodeproj", | |
"resource_name": "CaptureSDKResources", | |
"target_name": "GiniCaptureSDK", | |
"resources_path": "../CaptureSDK/GiniCaptureSDK/Sources/GiniCaptureSDK/Resources", | |
"ci": "true" | |
} | |
- name: Archiving project | |
run: | | |
xcodebuild archive -project BankSDK/GiniBankSDKPinning/.build/swift-create-xcframework/GiniBankSDKPinning.xcodeproj \ | |
-scheme GiniBankSDKPinning \ | |
-sdk iphonesimulator \ | |
-xcconfig Distribution.xcconfig \ | |
-configuration Release \ | |
-destination="iOS" \ | |
-archivePath "iphonesimulatorPinning.xcarchive" SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES | |
xcodebuild clean archive -project BankSDK/GiniBankSDKPinning/.build/swift-create-xcframework/GiniBankSDKPinning.xcodeproj \ | |
-scheme GiniBankSDKPinning -sdk iphoneos \ | |
-xcconfig Distribution.xcconfig \ | |
-configuration Release \ | |
-destination generic/platform=iOS \ | |
-archivePath "iphoneosPinning.xcarchive" SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES | |
- name: Generate XCFrameworks | |
run: | | |
xcodebuild -create-xcframework \ | |
-framework iphoneosPinning.xcarchive/Products/Library/Frameworks/GiniBankAPILibrary.framework \ | |
-framework iphonesimulatorPinning.xcarchive/Products/Library/Frameworks/GiniBankAPILibrary.framework \ | |
-output GiniBankAPILibrary.xcframework &&\ | |
\ | |
xcodebuild -create-xcframework -framework iphoneosPinning.xcarchive/Products/Library/Frameworks/GiniCaptureSDK.framework -framework iphonesimulatorPinning.xcarchive/Products/Library/Frameworks/GiniCaptureSDK.framework -output GiniCaptureSDK.xcframework &&\ | |
\ | |
xcodebuild -create-xcframework -framework iphoneosPinning.xcarchive/Products/Library/Frameworks/GiniBankSDK.framework -framework iphonesimulatorPinning.xcarchive/Products/Library/Frameworks/GiniBankSDK.framework -output GiniBankSDK.xcframework &&\ | |
\ | |
xcodebuild -create-xcframework -framework iphoneosPinning.xcarchive/Products/Library/Frameworks/GiniBankAPILibraryPinning.framework -framework iphonesimulatorPinning.xcarchive/Products/Library/Frameworks/GiniBankAPILibraryPinning.framework -output GiniBankAPILibraryPinning.xcframework && \ | |
\ | |
xcodebuild -create-xcframework -framework iphoneosPinning.xcarchive/Products/Library/Frameworks/GiniCaptureSDKPinning.framework -framework iphonesimulatorPinning.xcarchive/Products/Library/Frameworks/GiniCaptureSDKPinning.framework -output GiniCaptureSDKPinning.xcframework && \ | |
\ | |
xcodebuild -create-xcframework -framework iphoneosPinning.xcarchive/Products/Library/Frameworks/GiniBankSDKPinning.framework -framework iphonesimulatorPinning.xcarchive/Products/Library/Frameworks/GiniBankSDKPinning.framework -output GiniBankSDKPinning.xcframework && \ | |
\ | |
xcodebuild -create-xcframework -framework iphoneosPinning.xcarchive/Products/Library/Frameworks/TrustKit.framework -framework iphonesimulatorPinning.xcarchive/Products/Library/Frameworks/TrustKit.framework -output TrustKit.xcframework | |
- name: archive frameworks GiniBankAPILibrary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: GiniBankSDKFramework | |
path: | | |
GiniBankAPILibrary.xcframework | |
GiniBankSDK.xcframework | |
GiniCaptureSDK.xcframework | |
TrustKit.xcframework | |
GiniBankSDKPinning.xcframework | |
GiniCaptureSDKPinning.xcframework | |
GiniBankAPILibraryPinning.xcframework | |