Update toolchain and doc for 6.2 (#564)

In preparation for the 2.0.0 GA release,

- Update `.swift-version`, `Package.swift` and all examples'
`package.swift` to Swift 6.2
- Update all references to `2.0.0-beta.3` to `2.0.0`. This includes the
doc and readme, but also the dependencies in the examples
`Package.swift`. This will temporary break the build of the examples,
until we tag v2.0.0. Note the CI will not be affected as its consumes
the local version of the library
- [CI] Use Swift-6.2-noble for all testing tasks
- Reinstate the script to generate the contributors list and update the
list
This commit is contained in:
Sébastien Stormacq
2025-09-23 21:12:33 +02:00
committed by GitHub
parent 1843cdcb3c
commit a1ab8df708
31 changed files with 179 additions and 63 deletions
@@ -79,12 +79,12 @@ create_swift_project() {
echo "📦 Add the AWS Lambda Swift runtime to your project"
# The following commands are commented out until the `lambad-init` plugin will be release
# swift package add-dependency https://github.com/swift-server/swift-aws-lambda-runtime.git --from 2.0.0-beta.1
# swift package add-dependency https://github.com/swift-server/swift-aws-lambda-runtime.git --from 2.0.0
# swift package add-dependency https://github.com/swift-server/swift-aws-lambda-events.git --from 1.0.0
# swift package add-target-dependency AWSLambdaRuntime MyLambda --package swift-aws-lambda-runtime
# swift package add-target-dependency AWSLambdaEvents MyLambda --package swift-aws-lambda-events
cat <<EOF > Package.swift
// swift-tools-version:6.0
// swift-tools-version:6.2
import PackageDescription
@@ -95,7 +95,7 @@ let package = Package(
.executable(name: "MyLambda", targets: ["MyLambda"])
],
dependencies: [
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "2.0.0-beta.1")
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "2.0.0")
],
targets: [
.executableTarget(