-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added xcframework as a separate workflow
- Loading branch information
Showing
4 changed files
with
63 additions
and
27 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
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
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,29 +1,68 @@ | ||
--- | ||
name: xcframework builder | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- "main" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
- uses: actions/checkout@v4 | ||
- name: xcodegen | ||
uses: xavierLowmiller/[email protected] | ||
with: | ||
spec: project.yml | ||
quiet: true | ||
version: '2.41.0' | ||
- name: generate xcframeworks | ||
run : | | ||
./ci/scripts/xcframework.sh | ||
macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: latest-stable | ||
- uses: actions/checkout@v4 | ||
- name: xcodegen | ||
uses: bryce-b/xcodegen-action@patch-1 | ||
with: | ||
spec: project.yml | ||
quiet: false | ||
version: '2.41.0' | ||
- name: generate iOS xcframeworks | ||
run: | | ||
xcodebuild clean archive -scheme ElasticApm_iOS \ | ||
-configuration Release \ | ||
-destination 'generic/platform=iOS' \ | ||
-archivePath ./build/Release-iOS.xcarchive \ | ||
-derivedDataPath ./build/derivedDataPath \ | ||
SKIP_INSTALL=NO | ||
xcodebuild clean archive -scheme ElasticApm_iOS \ | ||
-configuration Release \ | ||
-destination 'generic/platform=iOS Simulator' \ | ||
-archivePath ./build/Release-iphonesimulator.xcarchive \ | ||
-derivedDataPath ./build/derivedDataPath \ | ||
SKIP_INSTALL=NO | ||
xcodebuild -create-xcframework \ | ||
-framework $(pwd)/build/Release-iOS.xcarchive/Products/Library/Frameworks/ElasticApm.framework \ | ||
-framework $(pwd)/build/Release-iphonesimulator.xcarchive/Products/Library/Frameworks/ElasticApm.framework \ | ||
-output ./build/ElasticApm_iOS.xcframework | ||
- name: generate macOS xcframework | ||
run: | | ||
xcodebuild clean archive -scheme ElasticApm_macOS \ | ||
-configuration Release \ | ||
-destination 'generic/platform=macOS' \ | ||
-archivePath ./build/Release-macOS.xcarchive \ | ||
-derivedDataPath ./build/derivedDataPath \ | ||
SKIP_INSTALL=NO | ||
xcodebuild -create-xcframework \ | ||
-framework $(pwd)/build/Release-macOS.xcarchive/Products/Library/Frameworks/ElasticApm.framework \ | ||
-output ./build/ElasticApm_macOS.xcframework | ||
- name: generate tvOS xcframework | ||
run: | | ||
xcodebuild clean archive -scheme ElasticApm_tvOS \ | ||
-configuration Release \ | ||
-destination 'generic/platform=tvOS' \ | ||
-archivePath ./build/Release-tvOS.xcarchive \ | ||
-derivedDataPath ./build/derivedDataPath \ | ||
SKIP_INSTALL=NO | ||
xcodebuild -create-xcframework \ | ||
-framework $(pwd)/build/Release-tvOS.xcarchive/Products/Library/Frameworks/ElasticApm.framework \ | ||
-output ./build/ElasticApm_tvOS.xcframework |
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