mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Binary upload checksum (#144887)
Equivalent to https://github.com/pytorch/test-infra/pull/6172 but for pytorch Pull Request resolved: https://github.com/pytorch/pytorch/pull/144887 Approved by: https://github.com/atalman
This commit is contained in:
parent
d0748566b4
commit
67ed47d886
1 changed files with 3 additions and 1 deletions
|
|
@ -58,7 +58,9 @@ s3_upload() {
|
||||||
for pkg in ${PKG_DIR}/*.${extension}; do
|
for pkg in ${PKG_DIR}/*.${extension}; do
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
${AWS_S3_CP} --no-progress --acl public-read "${pkg}" "${s3_upload_dir}"
|
shm_id=$(sha256sum "${pkg}" | awk '{print $1}')
|
||||||
|
${AWS_S3_CP} --no-progress --acl public-read "${pkg}" "${s3_upload_dir}" \
|
||||||
|
--metadata "checksum-sha256=${shm_id}"
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue