Skip to content

Commit b05a46b

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] [Nova] Disable Macos Wheels from CircleCI (#6987)
Reviewed By: YosuaMichael Differential Revision: D41648535 fbshipit-source-id: c4d9b10808b851d1250dea1d8474ee43a88f2864
1 parent b9e28cf commit b05a46b

File tree

5 files changed

+6
-128
lines changed

5 files changed

+6
-128
lines changed

.circleci/config.yml

Lines changed: 0 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/regenerate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ def build_workflows(prefix="", filter_branch=None, upload=False, indentation=6,
6767
if os_type == "linux" and btype == "wheel" and python_version != "3.7":
6868
continue
6969

70+
# Disable all Macos Wheels Workflows from CircleCI.
71+
if os_type == "macos" and btype == "wheel":
72+
continue
73+
7074
w += workflow_pair(
7175
btype, os_type, python_version, cu_version, unicode, prefix, upload, filter_branch=fb
7276
)

.github/workflows/build-m1-binaries.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,6 @@ jobs:
8181
with:
8282
name: torchvision-py${{ matrix.py_vers }}-macos11-m1
8383
path: dist/
84-
- name: Upload wheel to S3
85-
if: ${{ github.event_name == 'push' && (github.event.ref == 'refs/heads/nightly' || startsWith(github.event.ref, 'refs/tags/')) }}
86-
shell: arch -arch arm64 bash {0}
87-
env:
88-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
89-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
90-
run: |
91-
for pkg in dist/*; do
92-
aws s3 cp "$pkg" "s3://pytorch/whl/${CHANNEL}/cpu/" --acl public-read
93-
done
9484
build_conda:
9585
name: "Build TorchVision M1 conda packages"
9686
runs-on: macos-m1-12

.github/workflows/build-wheels-m1.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ jobs:
3939
package-name: ${{ matrix.package-name }}
4040
runner-type: macos-m1-12
4141
smoke-test-script: ${{ matrix.smoke-test-script }}
42-
# Using "development" as trigger event so these binaries are not uploaded
43-
# to official channels yet
44-
trigger-event: development
42+
trigger-event: ${{ github.event_name }}
4543
secrets:
4644
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
4745
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}

.github/workflows/build-wheels-macos.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ jobs:
3939
package-name: ${{ matrix.package-name }}
4040
runner-type: macos-12
4141
smoke-test-script: ${{ matrix.smoke-test-script }}
42-
# Using "development" as trigger event so these binaries are not uploaded
43-
# to official channels yet
44-
trigger-event: development
42+
trigger-event: ${{ github.event_name }}
4543
secrets:
4644
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
4745
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)