We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6274080 commit fe864ecCopy full SHA for fe864ec
.github/workflows/build-on-m1.yml
@@ -0,0 +1,25 @@
1
+name: Build on M1
2
+on:
3
+ pull_request
4
+jobs:
5
+ build_vision:
6
+ runs-on: macos-m1
7
+ steps:
8
+ - name: Checkout repository
9
+ uses: actions/checkout@v2
10
+ - name: Build TorchVision M1 wheel
11
+ shell: arch -arch arm64 zsh {0}
12
+ run: |
13
+ source ~/miniconda3/etc/profile.d/conda.sh
14
+ set -ex
15
+ conda create -yp conda-env python=3.8 numpy libpng openjpeg wheel pkg-config
16
+ conda activate -p conda-env
17
+ python3 -mpip install torch --extra-index-url=https://download.pytorch.org/whl/nightly torch
18
+ python3 -mpip install delocate
19
+ python3 setup.py bdist_wheel
20
+ - name: Upload TorchVision wheel
21
+ uses: seemethere/upload-artifact-s3@v4
22
+ with:
23
+ name: torchvision-py3.8-macos11-m1
24
+ path: dist/
25
+
0 commit comments