mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
Co-authored-by: Fabian Fett <fabianfett@apple.com> Co-authored-by: Sébastien Stormacq <sebastien.stormacq@gmail.com> Co-authored-by: Mahdi Bahrami <github@mahdibm.com>
35 lines
954 B
Swift
35 lines
954 B
Swift
// 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-example",
|
|
platforms: [
|
|
.macOS(.v12)
|
|
],
|
|
products: [
|
|
.executable(name: "MyLambda", targets: ["MyLambda"])
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha")
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "MyLambda",
|
|
dependencies: [
|
|
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime")
|
|
],
|
|
path: "."
|
|
)
|
|
]
|
|
)
|
|
|
|
// 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: "../..")
|
|
]
|
|
}
|