diff --git a/.github/actions/download-cache-and-artifacts/action.yml b/.github/actions/download-cache-and-artifacts/action.yml index 970ac87c41..f4ce01ca6c 100644 --- a/.github/actions/download-cache-and-artifacts/action.yml +++ b/.github/actions/download-cache-and-artifacts/action.yml @@ -38,20 +38,22 @@ runs: if [ -n "${{ inputs.cache-key-suffix }}" ]; then REMOTE_PATH="${REMOTE_PATH}-${{ inputs.cache-key-suffix }}" fi - echo "A" packages=( $(echo ${{ inputs.persistent-packages }}) ) - echo "B" for i in "${packages[@]}"; do - echo "C-$i" REMOTE_FILE_PATH="s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz" set +e; cache_exists=$(aws s3 ls $REMOTE_FILE_PATH > /dev/null); set -e echo "D-$i" if [ aws s3 ls $REMOTE_FILE_PATH > /dev/null -eq 0 ]; then + echo "E-$i" echo "downloading persistent cache artifacts from $REMOTE_FILE_PATH" - aws s3 cp --no-progress REMOTE_FILE_PATH $i.tar.gz - du -h $i.tar.gz + echo "F-$i" + aws s3 cp --no-progress REMOTE_FILE_PATH . + echo "G-$i" + echo "package $i size: $(du -h $i.tar.gz)" + echo "H-$i" tar xzf $i.tar.gz else + echo "I-$i" echo "persistent cache artifact file not found on $REMOTE_FILE_PATH. continue." fi