diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index f997f83..2864fa6 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -1,4 +1,4 @@ -name: Swift +name: CI on: push: @@ -11,19 +11,18 @@ jobs: runs-on: macos-latest 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 - 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=16.2" lint-swift: - runs-on: macos-13 + runs-on: macos-latest steps: - uses: actions/checkout@v2 - 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/Package.swift b/Package.swift index ab6551f..ccd701f 100644 --- a/Package.swift +++ b/Package.swift @@ -1,11 +1,11 @@ -// 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"]),