Skip to content

Commit

Permalink
Fix Xcode 13 builds
Browse files Browse the repository at this point in the history
Refs #16
  • Loading branch information
mxcl committed Sep 20, 2021
1 parent e26f6a5 commit 7d80fb5
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 7 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI
on:
pull_request:
jobs:
build:
runs-on: ${{ matrix.xcode == '11' && 'macos-10.15' || 'macos-11' }}
strategy:
matrix:
platform:
- macOS
- tvOS
- iOS
- watchOS
xcode:
- 11
- 12
- 13
steps:
- uses: actions/checkout@v2
- run: rm -rf PMKStoreKit.xcodeproj
- uses: mxcl/xcodebuild@v1
with:
xcode: ${{ matrix.xcode }}
platform: ${{ matrix.platform }}
action: build
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.xcscmblueprint
/Carthage
/.build
.DS_Store
.DS_Store
/Package.resolved
15 changes: 9 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
// swift-tools-version:4.0
// swift-tools-version:5.0
import PackageDescription

let name = "PMKStoreKit"

let pkg = Package(name: name)
pkg.platforms = [
.watchOS("6.2")
]
pkg.products = [
.library(name: name, targets: [name]),
.library(name: name, targets: [name]),
]
pkg.swiftLanguageVersions = [3, 4]
pkg.swiftLanguageVersions = [.v4, .v5]
pkg.dependencies = [
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.0.0")
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.0.0")
]

let target: Target = .target(name: name)
target.path = "Sources"
target.exclude = [
"SKRequest+AnyPromise.h",
"SKRequest+AnyPromise.m",
"\(name).h",
"SKRequest+AnyPromise.m",
"\(name).h",
]
target.dependencies = ["PromiseKit"]

Expand Down
24 changes: 24 additions & 0 deletions Package@swift-4.0.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// swift-tools-version:4.0
import PackageDescription

let name = "PMKStoreKit"

let pkg = Package(name: name)
pkg.products = [
.library(name: name, targets: [name]),
]
pkg.swiftLanguageVersions = [3, 4]
pkg.dependencies = [
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.0.0")
]

let target: Target = .target(name: name)
target.path = "Sources"
target.exclude = [
"SKRequest+AnyPromise.h",
"SKRequest+AnyPromise.m",
"\(name).h",
]
target.dependencies = ["PromiseKit"]

pkg.targets = [target]
File renamed without changes.

0 comments on commit 7d80fb5

Please sign in to comment.