Skip to content

Commit 655f15d

Browse files
committed
Fix CI script path: hardcode SCRIPT_DIR, add shellcheck directive
1 parent 72cd5b4 commit 655f15d

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/scripts/check-archive-plugin.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fatal() { error "$@"; exit 1; }
1919

2020
test -n "${EXAMPLE:-}" || fatal "EXAMPLE unset"
2121

22-
SCRIPT_DIR="$(dirname "$0")"
22+
SCRIPT_DIR=".github/workflows/scripts"
2323

2424
OUTPUT_DIR=.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager
2525
OUTPUT_FILE=${OUTPUT_DIR}/MyLambda/bootstrap
@@ -28,6 +28,7 @@ ZIP_FILE=${OUTPUT_DIR}/MyLambda/MyLambda.zip
2828
pushd "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
3132
source "$SCRIPT_DIR/use-local-deps.sh"
3233

3334
# package the example (docker and swift toolchain are installed on the GH runner)

.github/workflows/scripts/check-link-foundation.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ OUTPUT_DIR=.build/release
2222
OUTPUT_FILE=${OUTPUT_DIR}/APIGatewayLambda
2323
LIBS_TO_CHECK="libFoundation.so libFoundationInternationalization.so lib_FoundationICU.so"
2424

25-
SCRIPT_DIR="$(dirname "$0")"
25+
SCRIPT_DIR=".github/workflows/scripts"
2626

2727
pushd 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
3031
source "$SCRIPT_DIR/use-local-deps.sh"
3132

3233
# recompile the example without the --static-swift-stdlib flag

.github/workflows/scripts/integration_tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ test -n "${SWIFT_VERSION:-}" || fatal "SWIFT_VERSION unset"
2424
test -n "${COMMAND:-}" || fatal "COMMAND unset"
2525
test -n "${EXAMPLE:-}" || fatal "EXAMPLE unset"
2626

27-
SCRIPT_DIR="$(dirname "$0")"
27+
SCRIPT_DIR=".github/workflows/scripts"
2828

2929
pushd 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
3233
source "$SCRIPT_DIR/use-local-deps.sh"
3334

3435
log "Running command with Swift $SWIFT_VERSION"

0 commit comments

Comments
 (0)