File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- # hello
1+ # AWS Lambda Custom Runtime for Swift.
22
33A description of this package.
Original file line number Diff line number Diff line change @@ -10,12 +10,14 @@ BUILD_DIR=.build
1010EXECUTABLE_NAME=$PROJECT_DIR
1111LAMBDA_ZIP=function.zip
1212
13+ BUILD_TYPE=release # debug or release
14+
1315echo " Building"
14- docker run -it --rm -v $( pwd) :/$PROJECT_DIR --env PROJECT_DIR=/$PROJECT_DIR swift:4.2.1 /bin/bash -c " cd hello && swift build"
16+ docker run -it --rm -v $( pwd) :/$PROJECT_DIR --env PROJECT_DIR=/$PROJECT_DIR swift:4.2.1 /bin/bash -c " cd hello && swift build -c $BUILD_TYPE "
1517
1618echo " Packaging"
1719cp bootstrap $LAMBDA_DIR
18- cp $BUILD_DIR /x86_64-unknown-linux/debug /$EXECUTABLE_NAME $LAMBDA_DIR
20+ cp $BUILD_DIR /x86_64-unknown-linux/$BUILD_TYPE /$EXECUTABLE_NAME $LAMBDA_DIR
1921
2022rm $LAMBDA_ZIP 2> /dev/null
2123pushd $LAMBDA_DIR > /dev/null
You can’t perform that action at this time.
0 commit comments