#!/bin/bash ##===----------------------------------------------------------------------===## ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## ## Copyright (c) 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 ## ##===----------------------------------------------------------------------===## # Connect with ssh export PATH=/home/ubuntu/swift-6.0.3-RELEASE-ubuntu24.04-aarch64/usr/bin:"${PATH}" # clone a project git clone https://github.com/swift-server/swift-aws-lambda-runtime.git # be sure Swift is install. # Youc an install swift with the following command: ./scripts/ubuntu-install-swift.sh # build the project cd swift-aws-lambda-runtime/Examples/ResourcesPackaging/ || exit 1 LAMBDA_USE_LOCAL_DEPS=../.. swift package archive --allow-network-connections docker