diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index f997f83..60dfb61 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -1,4 +1,4 @@ -name: Swift +name: CI on: push: @@ -8,22 +8,25 @@ on: jobs: build: - runs-on: macos-latest + runs-on: macos-13 strategy: matrix: - destination: ['platform=iOS Simulator,OS=11.0,name=iPhone 8', 'platform=iOS Simulator,OS=16.2,name=iPhone 14'] + xcode: + - '15.0' # Swift 5.9 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build - run: xcodebuild clean build -scheme HorizonCalendar + run: xcodebuild clean build -scheme HorizonCalendar -destination "generic/platform=iOS Simulator" - name: Run tests - run: xcodebuild clean test -project HorizonCalendar.xcodeproj -scheme HorizonCalendar -destination "name=iPhone 8,OS=16.2" + run: xcodebuild clean test -project HorizonCalendar.xcodeproj -scheme HorizonCalendar -destination "name=iPhone 14,OS=17.2" lint-swift: runs-on: macos-13 + strategy: + matrix: + xcode: + - '15.0' # Swift 5.9 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Lint Swift run: swift package --allow-writing-to-package-directory format --lint - - diff --git a/HorizonCalendar.podspec b/HorizonCalendar.podspec index 6a959c1..5c2942c 100644 --- a/HorizonCalendar.podspec +++ b/HorizonCalendar.podspec @@ -36,7 +36,7 @@ Features: spec.homepage = "https://github.com/airbnb/HorizonCalendar" spec.authors = { "Bryan Keller" => "kellerbryan19@gmail.com" } spec.social_media_url = "https://twitter.com/BKYourWay19" - spec.swift_version = "5.8" - spec.ios.deployment_target = '11.0' + spec.swift_version = "5.9" + spec.ios.deployment_target = '12.0' spec.source_files = "Sources/**/*.{swift,h}" end diff --git a/HorizonCalendar.xcodeproj/project.pbxproj b/HorizonCalendar.xcodeproj/project.pbxproj index 4d870e6..59b19f7 100644 --- a/HorizonCalendar.xcodeproj/project.pbxproj +++ b/HorizonCalendar.xcodeproj/project.pbxproj @@ -565,6 +565,7 @@ SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -622,6 +623,7 @@ SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -644,7 +646,7 @@ GCC_WARN_UNUSED_PARAMETER = YES; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -678,7 +680,7 @@ GCC_WARN_UNUSED_PARAMETER = YES; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -702,7 +704,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = 5Q5SGQT2R4; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -722,7 +724,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = 5Q5SGQT2R4; INFOPLIST_FILE = Tests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/Package.swift b/Package.swift index ab6551f..a28776f 100644 --- a/Package.swift +++ b/Package.swift @@ -1,11 +1,10 @@ -// swift-tools-version:5.8 - +// swift-tools-version: 5.9 import PackageDescription let package = Package( name: "HorizonCalendar", platforms: [ - .iOS(.v11), + .iOS(.v12), ], products: [ .library(name: "HorizonCalendar", targets: ["HorizonCalendar"]),