-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathPackage.swift
43 lines (39 loc) · 1.3 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
// swift-tools-version:5.7
import PackageDescription
import class Foundation.ProcessInfo // needed for CI to test the local version of the library
let package = Package(
name: "swift-aws-lambda-runtime-samples",
platforms: [
.macOS(.v12)
],
products: [
// introductory example
.executable(name: "HelloWorld", targets: ["HelloWorld"]),
// good for benchmarking
.executable(name: "Benchmark", targets: ["Benchmark"]),
// demonstrate different types of error handling
],
dependencies: [
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha")
],
targets: [
.executableTarget(
name: "Benchmark",
dependencies: [
.product(name: "AWSLambdaRuntimeCore", package: "swift-aws-lambda-runtime")
]
),
.executableTarget(
name: "HelloWorld",
dependencies: [
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime")
]
),
]
)
// for CI to test the local version of the library
if ProcessInfo.processInfo.environment["LAMBDA_USE_LOCAL_DEPS"] != nil {
package.dependencies = [
.package(name: "swift-aws-lambda-runtime", path: "../..")
]
}