mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Test universal xcframework
This commit is contained in:
1 parent
1577825585
commit
2bd080799f
2 files changed
+36
-7
No files matched your search
@@ -185,5 +185,5 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: ${{ matrix.name }}
|
||||
run: make test_archive_GRDBOSX_xcframework
|
||||
run: make test_universal_xcframework
|
||||
|
||||
@@ -75,7 +75,7 @@ test_framework_darwin: test_framework_GRDB test_framework_GRDBCustom test_framew
|
||||
test_framework_GRDB: test_framework_GRDBOSX test_framework_GRDBiOS test_framework_GRDBtvOS
|
||||
test_framework_GRDBCustom: test_framework_GRDBCustomSQLiteOSX test_framework_GRDBCustomSQLiteiOS
|
||||
test_framework_SQLCipher: test_framework_SQLCipher3 test_framework_SQLCipher3Encrypted test_framework_SQLCipher4 test_framework_SQLCipher4Encrypted
|
||||
test_archive: test_archive_GRDBOSX_xcframework
|
||||
test_archive: test_universal_xcframework
|
||||
test_install: test_install_manual test_install_SPM test_install_customSQLite test_install_GRDB_CocoaPods test_CocoaPodsLint
|
||||
test_CocoaPodsLint: test_CocoaPodsLint_GRDB
|
||||
test_demo_apps: test_GRDBDemoiOS test_GRDBCombineDemo test_GRDBAsyncDemo
|
||||
@@ -219,22 +219,51 @@ test_SPM:
|
||||
$(SWIFT) build -c release
|
||||
set -o pipefail && $(SWIFT) test --parallel
|
||||
|
||||
test_archive_GRDBOSX_xcframework:
|
||||
test_universal_xcframework:
|
||||
rm -rf Tests/products
|
||||
mkdir Tests/products
|
||||
$(XCODEBUILD) archive \
|
||||
-project GRDB.xcodeproj \
|
||||
-scheme GRDB \
|
||||
-configuration Release \
|
||||
-destination "generic/platform=iOS" \
|
||||
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
|
||||
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
|
||||
-archivePath "$(PWD)/Tests/products/GRDB-iOS.xcarchive" \
|
||||
SKIP_INSTALL=NO \
|
||||
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
|
||||
$(XCODEBUILD) archive \
|
||||
-project GRDB.xcodeproj \
|
||||
-scheme GRDB \
|
||||
-destination "generic/platform=iOS Simulator" \
|
||||
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
|
||||
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
|
||||
-archivePath "$(PWD)/Tests/products/GRDB-iOS_Simulator.xcarchive" \
|
||||
SKIP_INSTALL=NO \
|
||||
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
|
||||
$(XCODEBUILD) archive \
|
||||
-project GRDB.xcodeproj \
|
||||
-scheme GRDB \
|
||||
-destination "generic/platform=macOS" \
|
||||
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
|
||||
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
|
||||
-archivePath "$(PWD)/Tests/products/GRDB.xcarchive" \
|
||||
-archivePath "$(PWD)/Tests/products/GRDB-macOS.xcarchive" \
|
||||
SKIP_INSTALL=NO \
|
||||
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
|
||||
$(XCODEBUILD) archive \
|
||||
-project GRDB.xcodeproj \
|
||||
-scheme GRDB \
|
||||
-destination "generic/platform=macOS,variant=Mac Catalyst" \
|
||||
OTHER_SWIFT_FLAGS=$(OTHER_SWIFT_FLAGS) \
|
||||
GCC_PREPROCESSOR_DEFINITIONS=$(GCC_PREPROCESSOR_DEFINITIONS) \
|
||||
-archivePath "$(PWD)/Tests/products/GRDB-Mac_Catalyst.xcarchive" \
|
||||
SKIP_INSTALL=NO \
|
||||
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
|
||||
$(XCODEBUILD) -create-xcframework \
|
||||
-framework '$(PWD)/Tests/products/GRDB.xcarchive/Products/Library/Frameworks/GRDB.framework' \
|
||||
-output '$(PWD)/Tests/products/GRDB.xcframework'
|
||||
-archive '$(PWD)/Tests/products/GRDB-iOS.xcarchive' -framework GRDB.framework \
|
||||
-archive '$(PWD)/Tests/products/GRDB-iOS_Simulator.xcarchive' -framework GRDB.framework \
|
||||
-archive '$(PWD)/Tests/products/GRDB-macOS.xcarchive' -framework GRDB.framework \
|
||||
-archive '$(PWD)/Tests/products/GRDB-Mac_Catalyst.xcarchive' -framework GRDB.framework \
|
||||
-output '$(PWD)/Tests/products/GRDB.xcframework'
|
||||
|
||||
test_install_manual:
|
||||
$(XCODEBUILD) \
|
||||
|
||||
Reference in new issue
Block a user