!256 Output sha256 file

Merge pull request !256 from ZhouFeng/output-sha256-file
This commit is contained in:
mindspore-ci-bot 2020-04-13 14:16:43 +08:00 committed by Gitee
commit e8f6c1a4e6
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ PACKAGE_BASE_NAME=${PACKAGE_BASE_NAME//_*-/-}
PACKAGE_NEW_NAME="${PACKAGE_BASE_NAME}-${PY_TAGS}-${PLATFORM_TAG}.whl"
cp -rf "${PACKAGE_PATH}/dist"/*.whl "${PACKAGE_PATH}/${PACKAGE_NEW_NAME}"
cp -f "${PACKAGE_PATH}/${PACKAGE_NEW_NAME}" "${OUTPUT_PATH}"
find ${OUTPUT_PATH} -name "*.whl" -print0 | xargs -0 -I {} sh -c "sha256sum {} | awk '{printf \$1}' > {}.sha256"
cd "${BASEPATH}"