Skip to content

Commit 9b4fa04

Browse files
committed
Add package manifest for Swift 5.9
1 parent ef2a46c commit 9b4fa04

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
swift-version:
20+
- ^5
2021
- ^6
2122

2223
name: Build and Test (Swift ${{ matrix.swift-version }})

Package@swift-5.swift

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// swift-tools-version:5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "mcp-swift-sdk",
8+
platforms: [
9+
.macOS("13.0"),
10+
.iOS("16.0"),
11+
],
12+
products: [
13+
// Products define the executables and libraries a package produces, making them visible to other packages.
14+
.library(
15+
name: "MCP",
16+
targets: ["MCP"])
17+
],
18+
dependencies: [
19+
.package(url: "https://github.com/apple/swift-system.git", from: "1.0.0"),
20+
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.0"),
21+
],
22+
targets: [
23+
// Targets are the basic building blocks of a package, defining a module or a test suite.
24+
// Targets can depend on other targets in this package and products from dependencies.
25+
.target(
26+
name: "MCP",
27+
dependencies: [
28+
.product(name: "SystemPackage", package: "swift-system"),
29+
.product(name: "Logging", package: "swift-log"),
30+
]),
31+
.testTarget(
32+
name: "MCPTests",
33+
dependencies: [
34+
"MCP",
35+
.product(name: "SystemPackage", package: "swift-system"),
36+
.product(name: "Logging", package: "swift-log"),
37+
]),
38+
]
39+
)

0 commit comments

Comments
 (0)