mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Merge pull request #1403 from groue/dev/ci-macOS13
GitHub CI: test Xcode 14.3.1, macOS 13
This commit is contained in:
4 files changed
+77
-28
No files matched your search
+36
-22
@@ -40,24 +40,32 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- xcode: "Xcode_14.3.1.app"
|
||||
runsOn: macOS-13
|
||||
destination: "platform=macOS"
|
||||
name: "macOS"
|
||||
- xcode: "Xcode_14.3.1.app"
|
||||
runsOn: macOS-13
|
||||
destination: "OS=16.4,name=iPhone 14 Pro"
|
||||
name: "iOS"
|
||||
- xcode: "Xcode_14.3.1.app"
|
||||
runsOn: macOS-13
|
||||
destination: "OS=16.4,name=Apple TV"
|
||||
name: "tvOS"
|
||||
- xcode: "Xcode_14.2.app"
|
||||
runsOn: macOS-12
|
||||
runsOn: macOS-13
|
||||
destination: "platform=macOS"
|
||||
name: "macOS"
|
||||
- xcode: "Xcode_14.2.app"
|
||||
runsOn: macOS-12
|
||||
runsOn: macOS-13
|
||||
destination: "OS=16.2,name=iPhone 14"
|
||||
name: "iOS"
|
||||
- xcode: "Xcode_14.2.app"
|
||||
runsOn: macOS-12
|
||||
destination: "OS=16.1,name=Apple TV"
|
||||
name: "tvOS"
|
||||
- xcode: "Xcode_14.1.app"
|
||||
runsOn: macOS-12
|
||||
runsOn: macOS-13
|
||||
destination: "platform=macOS"
|
||||
name: "macOS"
|
||||
- xcode: "Xcode_14.1.app"
|
||||
runsOn: macOS-12
|
||||
runsOn: macOS-13
|
||||
destination: "OS=16.1,name=iPhone 14"
|
||||
name: "iOS"
|
||||
- xcode: "Xcode_14.0.1.app"
|
||||
@@ -82,11 +90,14 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- xcode: "Xcode_14.3.1.app"
|
||||
runsOn: macOS-13
|
||||
name: "Xcode 14.3.1"
|
||||
- xcode: "Xcode_14.2.app"
|
||||
runsOn: macOS-12
|
||||
runsOn: macOS-13
|
||||
name: "Xcode 14.2"
|
||||
- xcode: "Xcode_14.1.app"
|
||||
runsOn: macOS-12
|
||||
runsOn: macOS-13
|
||||
name: "Xcode 14.1"
|
||||
- xcode: "Xcode_14.0.1.app"
|
||||
runsOn: macOS-12
|
||||
@@ -105,9 +116,12 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- xcode: "Xcode_14.2.app"
|
||||
- xcode: "Xcode_14.3.1.app"
|
||||
runsOn: macOS-13
|
||||
name: "Xcode 14.3.1"
|
||||
- xcode: "Xcode_14.0.1.app"
|
||||
runsOn: macOS-12
|
||||
name: "Xcode 14.2"
|
||||
name: "Xcode 14.0.1"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: ${{ matrix.name }}
|
||||
@@ -122,9 +136,9 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- xcode: "Xcode_14.2.app"
|
||||
runsOn: macOS-12
|
||||
name: "Xcode 14.2"
|
||||
- xcode: "Xcode_14.3.1.app"
|
||||
runsOn: macOS-13
|
||||
name: "Xcode 14.3.1"
|
||||
- xcode: "Xcode_14.0.1.app"
|
||||
runsOn: macOS-12
|
||||
name: "Xcode 14.0.1"
|
||||
@@ -142,9 +156,9 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- xcode: "Xcode_14.2.app"
|
||||
runsOn: macOS-12
|
||||
name: "Xcode 14.2"
|
||||
- xcode: "Xcode_14.3.1.app"
|
||||
runsOn: macOS-13
|
||||
name: "Xcode 14.3.1"
|
||||
- xcode: "Xcode_14.0.1.app"
|
||||
runsOn: macOS-12
|
||||
name: "Xcode 14.0.1"
|
||||
@@ -162,14 +176,14 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- xcode: "Xcode_14.2.app"
|
||||
runsOn: macOS-12
|
||||
name: "Xcode 14.2"
|
||||
- xcode: "Xcode_14.3.1.app"
|
||||
runsOn: macOS-13
|
||||
name: "Xcode 14.3.1"
|
||||
- xcode: "Xcode_14.0.1.app"
|
||||
runsOn: macOS-12
|
||||
name: "Xcode 14.0.1"
|
||||
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) \
|
||||
|
||||
@@ -17,6 +17,9 @@ end
|
||||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
target.build_configurations.each do |config|
|
||||
# Workaround for Xcode 14.3+
|
||||
# https://github.com/CocoaPods/CocoaPods/issues/11839
|
||||
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.13'
|
||||
config.build_settings['GCC_OPTIMIZATION_LEVEL'] = '3'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -17,6 +17,9 @@ end
|
||||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
target.build_configurations.each do |config|
|
||||
# Workaround for Xcode 14.3+
|
||||
# https://github.com/CocoaPods/CocoaPods/issues/11839
|
||||
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.13'
|
||||
config.build_settings['GCC_OPTIMIZATION_LEVEL'] = '3'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user