Skip to content

Update CI / build #1316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@ name: Build and test
on: [push, pull_request]
env:
IOS_SIMULATOR: "iPhone 15"
IOS_VERSION: "17.2"
IOS_VERSION: "17.5"
jobs:
build:
runs-on: macos-14
runs-on: macos-15
steps:
- uses: actions/checkout@v2
- name: "Select Xcode"
# Currently only works with Xcode 14.2:
# https://github.com/CocoaPods/CocoaPods/issues/11839
run: |
xcode-select -p
sudo xcode-select -s /Applications/Xcode_15.3.app/Contents/Developer
- name: "Lint"
run: make lint
- name: "Run tests (PACKAGE_MANAGER_COMMAND: test)"
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source "https://rubygems.org"

gem 'cocoapods', :git => 'https://github.com/SagarSDagdu/CocoaPods.git', tag: '1.15.2.1-sagard'
# https://github.com/CocoaPods/CocoaPods/pull/12816
gem 'cocoapods', :git => 'https://github.com/jberkel/CocoaPods.git', branch: 'watchos-fourflusher'
69 changes: 38 additions & 31 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
GIT
remote: https://github.com/SagarSDagdu/CocoaPods.git
revision: d96f491f79abd2804d1359c5228cce404dd365b7
tag: 1.15.2.1-sagard
remote: https://github.com/jberkel/CocoaPods.git
revision: 32a90c184bc5dc9ec8b7b9b8ad08e98b7253dec2
branch: watchos-fourflusher
specs:
cocoapods (1.15.2.1.pre.sagard)
cocoapods (1.16.2)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.15.2)
cocoapods-core (= 1.16.2)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 2.1, < 3.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
Expand All @@ -19,8 +19,8 @@ GIT
gh_inspector (~> 1.0)
molinillo (~> 0.8.0)
nap (~> 1.0)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.23.0, < 2.0)
ruby-macho (~> 4.1.0)
xcodeproj (>= 1.27.0, < 2.0)

GEM
remote: https://rubygems.org/
Expand All @@ -29,26 +29,29 @@ GEM
base64
nkf
rexml
activesupport (7.1.3.2)
activesupport (7.2.2.1)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
atomos (0.1.3)
base64 (0.2.0)
bigdecimal (3.1.7)
benchmark (0.4.0)
bigdecimal (3.1.9)
claide (1.1.0)
cocoapods-core (1.15.2)
cocoapods-core (1.16.2)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
algoliasearch (~> 1.0)
Expand All @@ -68,41 +71,45 @@ GEM
netrc (~> 0.11)
cocoapods-try (1.2.0)
colored2 (3.1.2)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
drb (2.2.1)
concurrent-ruby (1.3.5)
connection_pool (2.5.3)
drb (2.2.3)
escape (0.0.4)
ethon (0.16.0)
ffi (>= 1.15.0)
ffi (1.16.3)
ffi (1.17.2)
ffi (1.17.2-arm64-darwin)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (1.14.4)
httpclient (2.9.0)
mutex_m
i18n (1.14.7)
concurrent-ruby (~> 1.0)
json (2.7.2)
minitest (5.22.3)
json (2.12.0)
logger (1.7.0)
minitest (5.25.5)
molinillo (0.8.0)
mutex_m (0.2.0)
nanaimo (0.3.0)
mutex_m (0.3.0)
nanaimo (0.4.0)
nap (1.1.0)
netrc (0.11.0)
nkf (0.2.0)
public_suffix (4.0.7)
rexml (3.2.6)
ruby-macho (2.5.1)
rexml (3.4.1)
ruby-macho (4.1.0)
securerandom (0.4.1)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
xcodeproj (1.24.0)
xcodeproj (1.27.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
rexml (~> 3.2.4)
nanaimo (~> 0.4.0)
rexml (>= 3.3.6, < 4.0)

PLATFORMS
arm64-darwin-23
Expand All @@ -112,4 +119,4 @@ DEPENDENCIES
cocoapods!

BUNDLED WITH
2.5.4
2.6.9
50 changes: 12 additions & 38 deletions SQLite.swift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,21 @@ Pod::Spec.new do |s|
s.default_subspec = 'standard'
s.swift_versions = ['5']

ios_deployment_target = '12.0'
tvos_deployment_target = '12.0'
osx_deployment_target = '10.13'
watchos_deployment_target = '4.0'
visionos_deployment_target = '1.0'

s.ios.deployment_target = ios_deployment_target
s.tvos.deployment_target = tvos_deployment_target
s.osx.deployment_target = osx_deployment_target
s.watchos.deployment_target = watchos_deployment_target
s.visionos.deployment_target = visionos_deployment_target
s.ios.deployment_target = '12.0'
s.tvos.deployment_target = '12.0'
s.osx.deployment_target = '10.13'
s.watchos.deployment_target = '4.0'
s.visionos.deployment_target = '1.0'

s.subspec 'standard' do |ss|
ss.source_files = 'Sources/SQLite/**/*.{c,h,m,swift}'
ss.exclude_files = 'Sources/**/Cipher.swift'
ss.library = 'sqlite3'
ss.resource_bundle = { 'SQLite.swift' => 'Sources/SQLite/PrivacyInfo.xcprivacy' }

ss.ios.deployment_target = ios_deployment_target
ss.tvos.deployment_target = tvos_deployment_target
ss.osx.deployment_target = osx_deployment_target
ss.watchos.deployment_target = watchos_deployment_target
ss.visionos.deployment_target = visionos_deployment_target

ss.test_spec 'tests' do |test_spec|
test_spec.resources = 'Tests/SQLiteTests/Resources/*'
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
test_spec.ios.deployment_target = ios_deployment_target
test_spec.tvos.deployment_target = tvos_deployment_target
test_spec.osx.deployment_target = osx_deployment_target
end
end

Expand All @@ -62,22 +47,20 @@ Pod::Spec.new do |s|
}
ss.dependency 'sqlite3'

ss.ios.deployment_target = ios_deployment_target
ss.tvos.deployment_target = tvos_deployment_target
ss.osx.deployment_target = osx_deployment_target
ss.watchos.deployment_target = watchos_deployment_target
ss.visionos.deployment_target = visionos_deployment_target

ss.test_spec 'tests' do |test_spec|
test_spec.resources = 'Tests/SQLiteTests/Resources/*'
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
test_spec.ios.deployment_target = ios_deployment_target
test_spec.tvos.deployment_target = tvos_deployment_target
test_spec.osx.deployment_target = osx_deployment_target
end
end

s.subspec 'SQLCipher' do |ss|
# Disable unsupported visionOS
# https://github.com/sqlcipher/sqlcipher/issues/483
ss.ios.deployment_target = s.deployment_target(:ios)
ss.tvos.deployment_target = s.deployment_target(:tvos)
ss.osx.deployment_target = s.deployment_target(:osx)
ss.watchos.deployment_target = s.deployment_target(:watchos)

ss.source_files = 'Sources/SQLite/**/*.{c,h,m,swift}'
ss.resource_bundle = { 'SQLite.swift' => 'Sources/SQLite/PrivacyInfo.xcprivacy' }

Expand All @@ -87,18 +70,9 @@ Pod::Spec.new do |s|
}
ss.dependency 'SQLCipher', '>= 4.0.0'

ss.ios.deployment_target = ios_deployment_target
ss.tvos.deployment_target = tvos_deployment_target
ss.osx.deployment_target = osx_deployment_target
ss.watchos.deployment_target = watchos_deployment_target
#ss.visionos.deployment_target = visionos_deployment_target # Not supported by SQLCipher for now

ss.test_spec 'tests' do |test_spec|
test_spec.resources = 'Tests/SQLiteTests/Resources/*'
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
test_spec.ios.deployment_target = ios_deployment_target
test_spec.tvos.deployment_target = tvos_deployment_target
test_spec.osx.deployment_target = osx_deployment_target
end
end
end
15 changes: 9 additions & 6 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ if [ -n "$BUILD_SCHEME" ]; then
fi
elif [ -n "$VALIDATOR_SUBSPEC" ]; then
bundle install
if [ "$VALIDATOR_SUBSPEC" == "none" ]; then
bundle exec pod lib lint --no-subspecs --fail-fast
else
bundle exec pod lib lint --subspec="${VALIDATOR_SUBSPEC}" --fail-fast
fi
case "$VALIDATOR_SUBSPEC" in
none)
bundle exec pod lib lint --no-subspecs --fail-fast
;;
*)
bundle exec pod lib lint --subspec="${VALIDATOR_SUBSPEC}" --fail-fast
;;
esac
elif [ -n "$CARTHAGE_PLATFORM" ]; then
cd Tests/Carthage && make test CARTHAGE_PLATFORM="$CARTHAGE_PLATFORM"
elif [ -n "$SPM" ]; then
cd Tests/SPM && swift ${SPM}
cd Tests/SPM && swift "${SPM}"
elif [ -n "${PACKAGE_MANAGER_COMMAND}" ]; then
swift ${PACKAGE_MANAGER_COMMAND}
fi