mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-05-03 07:22:27 +00:00
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:
committed by
GitHub
parent
1843cdcb3c
commit
a1ab8df708
@@ -38,8 +38,9 @@ on:
|
||||
required: true
|
||||
matrix_linux_swift_container_image:
|
||||
type: string
|
||||
description: "Container image for the matrix job. Defaults to matching latest Swift 6.1 Amazon Linux 2 image."
|
||||
default: "swiftlang/swift:nightly-6.1-amazonlinux2"
|
||||
# Note: we don't use Amazon Linux 2 here because zip is not installed by default.
|
||||
description: "Container image for the matrix test jobs. Defaults to Swift 6.2 on Amazon Linux 2."
|
||||
default: "swift:6.2-amazonlinux2"
|
||||
|
||||
## We are cancelling previously triggered workflow runs
|
||||
concurrency:
|
||||
@@ -48,7 +49,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
test-examples:
|
||||
name: Test Examples/${{ matrix.examples }} on ${{ matrix.swift.swift_version }}
|
||||
name: Test Examples/${{ matrix.examples }} on ${{ matrix.swift.image }}
|
||||
if: ${{ inputs.examples_enabled }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
@@ -105,14 +106,17 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
examples: ${{ fromJson(inputs.archive_plugin_examples) }}
|
||||
# These must run on Ubuntu and not in a container, because the plugin uses docker
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Mark the workspace as safe
|
||||
# https://github.com/actions/checkout/issues/766
|
||||
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
|
||||
|
||||
- name: Test the archive plugin
|
||||
env:
|
||||
EXAMPLE: ${{ matrix.examples }}
|
||||
@@ -123,14 +127,37 @@ jobs:
|
||||
name: No dependencies on Foundation
|
||||
if: ${{ inputs.check_foundation_enabled }}
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ inputs.matrix_linux_swift_container_image }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
# GitHub checkout action has a dep on NodeJS 20 which is not running on Amazonlinux2
|
||||
# workaround is to manually checkout the repository
|
||||
# https://github.com/actions/checkout/issues/1487
|
||||
- name: Manually Clone repository and checkout PR
|
||||
env:
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
run: |
|
||||
# Clone the repository
|
||||
git clone https://github.com/${{ github.repository }}
|
||||
cd ${{ github.event.repository.name }}
|
||||
|
||||
# Fetch the pull request
|
||||
git fetch origin +refs/pull/$PR_NUMBER/merge:
|
||||
|
||||
# Checkout the pull request
|
||||
git checkout -qf FETCH_HEAD
|
||||
|
||||
# - name: Checkout repository
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# persist-credentials: false
|
||||
|
||||
- name: Mark the workspace as safe
|
||||
working-directory: ${{ github.event.repository.name }} # until we can use action/checkout@v4
|
||||
# https://github.com/actions/checkout/issues/766
|
||||
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
|
||||
|
||||
- name: Check for Foundation or ICU dependency
|
||||
working-directory: ${{ github.event.repository.name }} # until we can use action/checkout@v4
|
||||
run: |
|
||||
.github/workflows/scripts/check-link-foundation.sh
|
||||
|
||||
@@ -12,9 +12,9 @@ jobs:
|
||||
license_header_check_project_name: "SwiftAWSLambdaRuntime"
|
||||
shell_check_enabled: true
|
||||
python_lint_check_enabled: true
|
||||
api_breakage_check_container_image: "swiftlang/swift:nightly-6.1-jammy"
|
||||
docs_check_container_image: "swift:6.0-noble"
|
||||
format_check_container_image: "swiftlang/swift:nightly-6.1-jammy"
|
||||
api_breakage_check_container_image: "swift:6.2-noble"
|
||||
docs_check_container_image: "swift:6.2-noble"
|
||||
format_check_container_image: "swift:6.2-noble"
|
||||
yamllint_check_enabled: true
|
||||
|
||||
unit-tests:
|
||||
|
||||
@@ -2,4 +2,5 @@ Tomer Doron <tomer@apple.com> <tomer@apple.com>
|
||||
Tomer Doron <tomer@apple.com> <tomerd@apple.com>
|
||||
Tomer Doron <tomer@apple.com> <tomer.doron@gmail.com>
|
||||
Fabian Fett <fabianfett@apple.com> <fabianfett@apple.com>
|
||||
Fabian Fett <fabianfett@apple.com> <fabianfett@mac.com>
|
||||
Fabian Fett <fabianfett@apple.com> <fabianfett@mac.com>
|
||||
Sébastien Stormacq <stormacq@amazon.com> <sebastien.stormacq@gmail.com>
|
||||
+41
-1
@@ -8,26 +8,66 @@ needs to be listed here.
|
||||
## COPYRIGHT HOLDERS
|
||||
|
||||
- Apple Inc. (all contributors with '@apple.com')
|
||||
- Amazon.com, Inc. or its affiliates (all contributors with '@amazon.com')
|
||||
|
||||
### Contributors
|
||||
|
||||
- Adam Fowler <adamfowler71@gmail.com>
|
||||
- Adolfo <fitomad@users.noreply.github.com>
|
||||
- Alessio Buratti <9006089+Buratti@users.noreply.github.com>
|
||||
- Andrea Scuderi <andreascuderi@ymail.com>
|
||||
- Bill <3207996+gestrich@users.noreply.github.com>
|
||||
- Brendan Kirchner <brendankirchner@me.com>
|
||||
- Bryan Bartow <bryanbartow@gmail.com>
|
||||
- Bryan Moffatt <bmoffatt@users.noreply.github.com>
|
||||
- Camden Fullmer <camdenfullmer@gmail.com>
|
||||
- Christoph Walcher <christoph-wa@gmx.de>
|
||||
- Colton Schlosser <cltnschlosser@gmail.com>
|
||||
- Cory Benfield <lukasa@apple.com>
|
||||
- Dmitry Platonov <dsplatonov@mail.ru>
|
||||
- DwayneCoussement <dwayne.coussement@gmail.com>
|
||||
- DwayneCoussement <dwayne.coussement@showpad.com>
|
||||
- Eneko Alonso <eneko.alonso@gmail.com>
|
||||
- Fabian Fett <fabianfett@mac.com>
|
||||
- Fabian Fett <fabianfett@apple.com>
|
||||
- Filipp Fediakov <julik103@mail.ru>
|
||||
- Florent Morin <florentmorin@icloud.com>
|
||||
- Franz Busch <f.busch@apple.com>
|
||||
- Franz Busch <privat@franz-busch.de>
|
||||
- George Barnett <gbarnett@apple.com>
|
||||
- Jack Rosen <jrosen081@gmail.com>
|
||||
- Joannis Orlandos <joannis@orlandos.nl>
|
||||
- Joel Saltzman <talk@joelsaltzman.com>
|
||||
- Johannes Bosecker <j.bosecker.dev@icloud.com>
|
||||
- Johannes Weiss <johannesweiss@apple.com>
|
||||
- Josh <29730338+mr-j-tree@users.noreply.github.com>
|
||||
- Juan A. Reyes <59104004+jareyesda@users.noreply.github.com>
|
||||
- Konrad `ktoso` Malawski <konrad.malawski@project13.pl>
|
||||
- ML <44809298+mufumade@users.noreply.github.com>
|
||||
- Marwane Koutar <100198937+MarwaneKoutar@users.noreply.github.com>
|
||||
- Matt Massicotte <85322+mattmassicotte@users.noreply.github.com>
|
||||
- Max Desiatov <max@desiatov.com>
|
||||
- Natan Rolnik <me@natanrolnik.me>
|
||||
- Norman Maurer <norman_maurer@apple.com>
|
||||
- Paul Toffoloni <69189821+ptoffy@users.noreply.github.com>
|
||||
- Ralph Küpper <ralph.kuepper@skelpo.com>
|
||||
- Ro-M <Ro-M@users.noreply.github.com>
|
||||
- Stefan Nienhuis <stefan@nienhuisdevelopment.com>
|
||||
- Sven A. Schmidt <sas@finestructure.co>
|
||||
- Sébastien Stormacq <stormacq@amazon.com>
|
||||
- Tim Condon <0xTim@users.noreply.github.com>
|
||||
- Tobias <t089@users.noreply.github.com>
|
||||
- Tomer Doron <tomer@apple.com>
|
||||
- YR Chen <stevapple@icloud.com>
|
||||
- Yim Lee <yim_lee@apple.com>
|
||||
- Zhibin Cai <TonyChol@users.noreply.github.com>
|
||||
- aryan-25 <aryan_shah@apple.com>
|
||||
- dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
||||
- jsonfry <jason@jasonfry.co.uk>
|
||||
- mattcorey <mattcorey@users.noreply.github.com>
|
||||
- pmarrufo <p_marrufo94@hotmail.com>
|
||||
- pokryfka <5090827+pokryfka@users.noreply.github.com>
|
||||
- pokryfka <pokryfka@gmail.com>
|
||||
- sja26 <sja26@users.noreply.github.com>
|
||||
- tachyonics <simon@tachyonics.io>
|
||||
|
||||
**Updating this list**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -14,7 +14,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.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"),
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "1.0.0"),
|
||||
],
|
||||
targets: [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -13,7 +13,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.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"),
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "1.0.0"),
|
||||
],
|
||||
targets: [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -13,7 +13,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.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(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -13,7 +13,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.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"),
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "1.0.0"),
|
||||
],
|
||||
targets: [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.1
|
||||
// swift-tools-version:6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -15,7 +15,7 @@ let package = Package(
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.package(
|
||||
url: "https://github.com/swift-server/swift-aws-lambda-runtime.git",
|
||||
from: "2.0.0-beta.1"
|
||||
from: "2.0.0"
|
||||
)
|
||||
],
|
||||
targets: [
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.1
|
||||
// This example has to be in Swift 6.1 because it is used in the test archive plugin CI job
|
||||
// That job runs on GitHub's ubuntu-latest environment that only supports Swift 6.1
|
||||
// https://github.com/actions/runner-images?tab=readme-ov-file
|
||||
// https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
|
||||
// We can update to Swift 6.2 when GitHUb hosts will have Swift 6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -13,7 +18,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.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(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.1
|
||||
// swift-tools-version:6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -13,7 +13,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "2.0.0-beta.3", traits: [])
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "2.0.0", traits: [])
|
||||
],
|
||||
targets: [
|
||||
.executableTarget(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version: 6.1
|
||||
// swift-tools-version: 6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
@@ -12,7 +12,7 @@ let package = Package(
|
||||
dependencies: [
|
||||
.package(
|
||||
url: "https://github.com/swift-server/swift-aws-lambda-runtime.git",
|
||||
from: "2.0.0-beta.1"
|
||||
from: "2.0.0"
|
||||
),
|
||||
.package(
|
||||
url: "https://github.com/hummingbird-project/hummingbird-lambda.git",
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
// swift-tools-version: 6.0
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
// swift-tools-version:6.1
|
||||
// This example has to be in Swift 6.1 because it is used in the test archive plugin CI job
|
||||
// That job runs on GitHub's ubuntu-latest environment that only supports Swift 6.1
|
||||
// https://github.com/actions/runner-images?tab=readme-ov-file
|
||||
// https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
|
||||
// We can update to Swift 6.2 when GitHUb hosts will have Swift 6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -13,7 +17,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(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version: 6.0
|
||||
// swift-tools-version: 6.2
|
||||
import PackageDescription
|
||||
|
||||
// needed for CI to test the local version of the library
|
||||
@@ -8,7 +8,7 @@ let package = Package(
|
||||
name: "S3EventNotifier",
|
||||
platforms: [.macOS(.v15)],
|
||||
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"),
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-events", from: "1.0.0"),
|
||||
],
|
||||
targets: [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version: 6.0
|
||||
// swift-tools-version: 6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -13,7 +13,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.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"),
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-events", from: "1.0.0"),
|
||||
.package(url: "https://github.com/awslabs/aws-sdk-swift", from: "1.0.0"),
|
||||
],
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version: 6.0
|
||||
// swift-tools-version: 6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -15,7 +15,7 @@ let package = Package(
|
||||
.package(url: "https://github.com/soto-project/soto.git", from: "7.0.0"),
|
||||
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.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"),
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-events", from: "1.0.0"),
|
||||
],
|
||||
targets: [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version: 6.0
|
||||
// swift-tools-version: 6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
@@ -13,7 +13,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/vapor/postgres-nio.git", from: "1.26.0"),
|
||||
.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"),
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "1.0.0"),
|
||||
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "2.6.3"),
|
||||
],
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version: 6.0
|
||||
// swift-tools-version: 6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -10,7 +10,7 @@ let package = Package(
|
||||
platforms: [.macOS(.v15)],
|
||||
dependencies: [
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.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"),
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "1.2.0"),
|
||||
],
|
||||
targets: [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -13,7 +13,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.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(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -13,7 +13,7 @@ let package = Package(
|
||||
],
|
||||
dependencies: [
|
||||
// during CI, the dependency on local version of swift-aws-lambda-runtime is added dynamically below
|
||||
.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"),
|
||||
.package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "1.0.0"),
|
||||
],
|
||||
targets: [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version: 6.0
|
||||
// swift-tools-version: 6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
@@ -9,7 +9,7 @@ let package = Package(
|
||||
name: "Palindrome",
|
||||
platforms: [.macOS(.v15)],
|
||||
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: [
|
||||
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
||||
|
||||
@@ -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(
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.1
|
||||
// swift-tools-version:6.2
|
||||
|
||||
import PackageDescription
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
@@ -9,6 +9,6 @@ let package = Package(
|
||||
.macOS(.v15)
|
||||
],
|
||||
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")
|
||||
]
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
@@ -12,6 +12,6 @@ let package = Package(
|
||||
.executable(name: "PalindromeLambda", targets: ["PalindromeLambda"])
|
||||
],
|
||||
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")
|
||||
]
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
@@ -12,7 +12,7 @@ let package = Package(
|
||||
.executable(name: "PalindromeLambda", targets: ["PalindromeLambda"])
|
||||
],
|
||||
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(
|
||||
|
||||
@@ -23,7 +23,7 @@ swift package init --type executable
|
||||
2. Add dependencies on `AWSLambdaRuntime` library
|
||||
|
||||
```swift
|
||||
// swift-tools-version:6.0
|
||||
// swift-tools-version:6.2
|
||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||
|
||||
import PackageDescription
|
||||
@@ -37,7 +37,7 @@ let package = Package(
|
||||
.executable(name: "MyFirstLambdaFunction", targets: ["MyFirstLambdaFunction"]),
|
||||
],
|
||||
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(
|
||||
|
||||
@@ -66,7 +66,7 @@ swift package init --type executable
|
||||
2.1 Add the Swift AWS Lambda Runtime as a dependency
|
||||
|
||||
```bash
|
||||
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-target-dependency AWSLambdaRuntime MyLambda --package swift-aws-lambda-runtime --from 1.0.0
|
||||
```
|
||||
|
||||
@@ -87,7 +87,7 @@ swift package init --type executable
|
||||
name: "MyLambda",
|
||||
platforms: [.macOS(.v15)],
|
||||
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(
|
||||
|
||||
Executable
+39
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
##===----------------------------------------------------------------------===##
|
||||
##
|
||||
## This source file is part of the SwiftAWSLambdaRuntime open source project
|
||||
##
|
||||
## Copyright (c) 2017-2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors
|
||||
## Licensed under Apache License v2.0
|
||||
##
|
||||
## See LICENSE.txt for license information
|
||||
## See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
|
||||
##
|
||||
## SPDX-License-Identifier: Apache-2.0
|
||||
##
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
set -eu
|
||||
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
contributors=$( cd "$here"/.. && git shortlog -es | cut -f2 | sed 's/^/- /' )
|
||||
|
||||
cat > "$here/../CONTRIBUTORS.txt" <<- EOF
|
||||
For the purpose of tracking copyright, this is the list of individuals and
|
||||
organizations who have contributed source code to SwiftAWSLambdaRuntime.
|
||||
|
||||
For employees of an organization/company where the copyright of work done
|
||||
by employees of that company is held by the company itself, only the company
|
||||
needs to be listed here.
|
||||
|
||||
## COPYRIGHT HOLDERS
|
||||
|
||||
- Apple Inc. (all contributors with '@apple.com')
|
||||
|
||||
### Contributors
|
||||
|
||||
$contributors
|
||||
|
||||
**Updating this list**
|
||||
|
||||
Please do not edit this file manually. It is generated using \`./scripts/generate_contributors_list.sh\`. If a name is misspelled or appearing multiple times: add an entry in \`./.mailmap\`
|
||||
EOF
|
||||
Reference in New Issue
Block a user