File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 17
17
strategy :
18
18
matrix :
19
19
swift-version :
20
+ - ^5
20
21
- ^6
21
22
22
23
name : Build and Test (Swift ${{ matrix.swift-version }})
Original file line number Diff line number Diff line change
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
+ )
You can’t perform that action at this time.
0 commit comments