-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
79 lines (77 loc) · 2.85 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// swift-tools-version: 5.7
import PackageDescription
let package = Package(
name: "swift-cicd",
defaultLocalization: "en-uS",
platforms: [.macOS(.v12)],
products: [
.library(name: "SwiftCICD", targets: ["SwiftCICD"]),
.library(name: "SwiftCICDCore", targets: ["SwiftCICDCore"]),
.library(name: "SwiftCICDActions", targets: ["SwiftCICDActions"]),
.library(name: "SwiftCICDPlatforms", targets: ["SwiftCICDPlatforms"]),
.library(name: "SlackActions", targets: ["SlackActions"]),
.executable(name: "Demo", targets: ["Demo"])
],
dependencies: [
.package(url: "https://github.com/clayellis/swift-environment", branch: "main"),
.package(url: "https://github.com/clayellis/swift-pr", branch: "main"),
.package(url: "https://github.com/vapor/jwt-kit", from: "4.0.0"),
.package(url: "https://github.com/apple/swift-log", from: "1.4.4"),
.package(url: "https://github.com/nerdishbynature/octokit.swift", branch: "main"),
],
targets: [
.target(
name: "SwiftCICD",
dependencies: [
.target(name: "SwiftCICDActions"),
.target(name: "SwiftCICDCore"),
.target(name: "SwiftCICDPlatforms")
]
),
.target(
name: "SwiftCICDActions",
dependencies: [
.target(name: "SwiftCICDCore"),
.target(name: "SwiftCICDPlatforms"),
.product(name: "JWTKit", package: "jwt-kit"),
.product(name: "OctoKit", package: "octokit.swift"),
.product(name: "SwiftPR", package: "swift-pr"),
]
),
.target(
name: "SwiftCICDCore",
dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "SwiftEnvironment", package: "swift-environment"),
]
),
.target(
name: "SwiftCICDPlatforms",
dependencies: [
.target(name: "SwiftCICDCore"),
.product(name: "Logging", package: "swift-log"),
.product(name: "OctoKit", package: "octokit.swift"),
.product(name: "SwiftEnvironment", package: "swift-environment"),
]
),
.target(
name: "SlackActions",
dependencies: [
.target(name: "SwiftCICDCore"),
.product(name: "Logging", package: "swift-log")
]
),
.testTarget(
name: "SwiftCICDTests",
dependencies: ["SwiftCICD"]
),
.executableTarget(
name: "Demo",
dependencies: [
.target(name: "SwiftCICD"),
.target(name: "SlackActions"),
.product(name: "Logging", package: "swift-log")
]
)
]
)