-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add section markers in sh script and move code signing into it
- Loading branch information
Showing
2 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,6 @@ jobs: | |
uses: actions/[email protected] | ||
- name: Build XCFramework | ||
run: ./buildxcf.sh | ||
- name: Sign XCFramework | ||
run: | | ||
codesign -s "iPhone Distribution: Blazej SLEBODA (43VBDTY4E3)" \ | ||
--force \ | ||
--deep \ | ||
-- $XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME_WITH_EXTENSION | ||
- name: Upload XCFramework as Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,38 @@ | ||
#!/bin/bash | ||
|
||
# Clean previous builds | ||
echo "::group::Clean previous builds" | ||
rm -rf $XCFRAMEWORK_OUTPUT_DIR | ||
mkdir $XCFRAMEWORK_OUTPUT_DIR | ||
echo "::endgroup::" | ||
|
||
# Build for iOS | ||
echo "::group::Build for iOS" | ||
xcodebuild archive \ | ||
-scheme $XCFRAMEWORK_NAME \ | ||
-destination 'generic/platform=iOS' \ | ||
-archivePath "$XCFRAMEWORK_OUTPUT_DIR/ios" \ | ||
SKIP_INSTALL=NO \ | ||
BUILD_LIBRARY_FOR_DISTRIBUTION=YES | ||
echo "::endgroup::" | ||
|
||
# Build for iOS Simulator | ||
echo "::group::Build for iOS Simulator" | ||
xcodebuild archive \ | ||
-scheme $XCFRAMEWORK_NAME \ | ||
-destination 'generic/platform=iOS Simulator' \ | ||
-archivePath "$XCFRAMEWORK_OUTPUT_DIR/ios_simulator" \ | ||
SKIP_INSTALL=NO \ | ||
BUILD_LIBRARY_FOR_DISTRIBUTION=YES | ||
echo "::endgroup::" | ||
|
||
# Create XCFramework | ||
echo "::group::Create XCFramework" | ||
xcodebuild -create-xcframework \ | ||
-framework "$XCFRAMEWORK_OUTPUT_DIR/ios.xcarchive/Products/Library/Frameworks/$XCFRAMEWORK_NAME.framework" \ | ||
-framework "$XCFRAMEWORK_OUTPUT_DIR/ios_simulator.xcarchive/Products/Library/Frameworks/$XCFRAMEWORK_NAME.framework" \ | ||
-output "$XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME.xcframework" | ||
echo "::endgroup::" | ||
|
||
echo "::group::Sign XCFramework" | ||
codesign -s "iPhone Distribution: Blazej SLEBODA (43VBDTY4E3)" \ | ||
--force \ | ||
--deep \ | ||
-- $XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME_WITH_EXTENSION | ||
echo "::endgroup::" |