Skip to content

Commit fe864ec

Browse files
committed
[WIP] Add Build-on-M1 workflow
1 parent 6274080 commit fe864ec

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)