File tree Expand file tree Collapse file tree
.github/workflows/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ fatal() { error "$@"; exit 1; }
1919
2020test -n " ${EXAMPLE:- } " || fatal " EXAMPLE unset"
2121
22- SCRIPT_DIR=" $( dirname " $0 " ) "
22+ SCRIPT_DIR=" .github/workflows/scripts "
2323
2424OUTPUT_DIR=.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager
2525OUTPUT_FILE=${OUTPUT_DIR} /MyLambda/bootstrap
@@ -28,6 +28,7 @@ ZIP_FILE=${OUTPUT_DIR}/MyLambda/MyLambda.zip
2828pushd " Examples/${EXAMPLE} " || exit 1
2929
3030# Use the local checkout of swift-aws-lambda-runtime instead of the published release
31+ # shellcheck source=use-local-deps.sh
3132source " $SCRIPT_DIR /use-local-deps.sh"
3233
3334# package the example (docker and swift toolchain are installed on the GH runner)
Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ OUTPUT_DIR=.build/release
2222OUTPUT_FILE=${OUTPUT_DIR} /APIGatewayLambda
2323LIBS_TO_CHECK=" libFoundation.so libFoundationInternationalization.so lib_FoundationICU.so"
2424
25- SCRIPT_DIR=" $( dirname " $0 " ) "
25+ SCRIPT_DIR=" .github/workflows/scripts "
2626
2727pushd Examples/${EXAMPLE} || fatal " Failed to change directory to Examples/${EXAMPLE} ."
2828
2929# Use the local checkout of swift-aws-lambda-runtime instead of the published release
30+ # shellcheck source=use-local-deps.sh
3031source " $SCRIPT_DIR /use-local-deps.sh"
3132
3233# recompile the example without the --static-swift-stdlib flag
Original file line number Diff line number Diff line change @@ -24,11 +24,12 @@ test -n "${SWIFT_VERSION:-}" || fatal "SWIFT_VERSION unset"
2424test -n " ${COMMAND:- } " || fatal " COMMAND unset"
2525test -n " ${EXAMPLE:- } " || fatal " EXAMPLE unset"
2626
27- SCRIPT_DIR=" $( dirname " $0 " ) "
27+ SCRIPT_DIR=" .github/workflows/scripts "
2828
2929pushd Examples/" $EXAMPLE " > /dev/null
3030
3131# Use the local checkout of swift-aws-lambda-runtime instead of the published release
32+ # shellcheck source=use-local-deps.sh
3233source " $SCRIPT_DIR /use-local-deps.sh"
3334
3435log " Running command with Swift $SWIFT_VERSION "
You can’t perform that action at this time.
0 commit comments