Skip to content

Commit

Permalink
Update Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bryankeller committed Jan 26, 2024
1 parent 6aecc28 commit b8c734b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Swift
name: CI

on:
push:
Expand All @@ -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
- 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

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


run: swift package format --lint
4 changes: 2 additions & 2 deletions HorizonCalendar.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Features:
spec.homepage = "https://github.com/airbnb/HorizonCalendar"
spec.authors = { "Bryan Keller" => "[email protected]" }
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
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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"]),
Expand Down

0 comments on commit b8c734b

Please sign in to comment.