Skip to content

Commit

Permalink
[CI] Fix upload_release script (#523)
Browse files Browse the repository at this point in the history
### Summary:

Update `upload_release.py` to not upload python packages on specific builds in order to avoid uploading an artifact multiple times

### Test Plan:

CI + Test Release
  • Loading branch information
VivekPanyam authored Nov 18, 2021
1 parent ca16eac commit 9dd2ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/upload_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def upload():

# The python package is the same across CPU/GPU and different versions of backends so we'll only upload once for mac and once for linux
# TODO(vip): Do this better
if REQUESTED_TORCH_VERSION != "1.6.0" and REQUESTED_TORCH_VERSION != "1.7.0" and not IS_GPU:
if REQUESTED_TORCH_VERSION not in ["1.6.0", "1.7.0", "1.8.1", "1.9.0"] and not IS_GPU:
# For each OS: For each python version
# Upload the pythonbridge backend
upload_package("source/bazel-bin/neuropod/backends/python_bridge/neuropod_pythonbridge_backend.tar.gz", release_id, "{}-python-{}-backend.tar.gz".format(platform, PYTHON_VERSION))
Expand Down

0 comments on commit 9dd2ca8

Please sign in to comment.