@@ -108,28 +108,9 @@ jobs:
108108 # https://github.com/actions/checkout/issues/766
109109 run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
110110 - name : Test the archive plugin
111- env :
112- EXAMPLE : HelloWorld
113- OUTPUT_FILE : .build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/MyLambda/bootstrap
114- ZIP_FILE : .build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/MyLambda/MyLambda.zip
115111 run : |
116- pushd Examples/${EXAMPLE}
117-
118- # package the example (docker and swift toolchain are installed on the GH runner)
119- LAMBDA_USE_LOCAL_DEPS=../.. swift package archive --allow-network-connections docker
120-
121- # did the plugin generated a Linux binary?
122- [ -f ${OUTPUT_FILE} ]
123- file ${OUTPUT_FILE} | grep --silent ELF
124-
125- # did the plugin created a ZIP file?
126- [ -f ${ZIP_FILE} ]
127-
128- # does the ZIP file contain the bootstrap?
129- unzip -l ${ZIP_FILE} | grep --silent bootstrap
130-
131- echo "✅ The archive plugin is OK"
132- popd
112+ which curl yq || (apt -q update && apt -yq install curl yq)
113+ curl -s https://raw.githubusercontent.com/swift-sever/swift-aws-lambda-runtime/refs/heads/main/.github/workflows/scripts/check-archive-plugin.sh | bash
133114
134115 check-foundation :
135116 name : No dependencies on Foundation
@@ -145,4 +126,5 @@ jobs:
145126 run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
146127 - name : Check for Foundation or ICU dependency
147128 run : |
129+ which curl yq || (apt -q update && apt -yq install curl yq)
148130 curl -s https://raw.githubusercontent.com/swift-sever/swift-aws-lambda-runtime/refs/heads/main/.github/workflows/scripts/check-link-foundation.sh | bash
0 commit comments