File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 4
4
jobs :
5
5
build_vision :
6
6
runs-on : macos-m1
7
+ strategy :
8
+ matrix :
9
+ py_vers : [ "3.8", "3.9", "3.10" ]
7
10
steps :
8
11
- name : Checkout repository
9
12
uses : actions/checkout@v2
10
13
- name : Build TorchVision M1 wheel
11
14
shell : arch -arch arm64 bash {0}
15
+ env :
16
+ ENV_NAME : conda-env-${{ github.run_id }}
17
+ PY_VERS : ${{ matrix.py_vers }}
12
18
run : |
13
19
echo $PATH
14
20
. ~/miniconda3/etc/profile.d/conda.sh
15
21
set -ex
16
- conda create -yp conda-env python=3.8 numpy libpng openjpeg wheel pkg-config
17
- conda run -p ./conda-env python3 -c "import os;print(os.__file__)"
18
- conda env list
19
- conda run -p conda-env python3 -mpip install torch --extra-index-url=https://download.pytorch.org/whl/nightly torch
20
- conda run -p conda-env python3 -mpip install delocate
21
- conda run -p conda-env python3 setup.py bdist_wheel
22
+ conda create -yp ${ENV_NAME} python=${PY_VERS} numpy libpng openjpeg wheel pkg-config
23
+ conda run -p ${ENV_NAME} python3 -c "import os;print(os.__file__)"
24
+ conda run -p ${ENV_NAME} python3 -mpip install torch --extra-index-url=https://download.pytorch.org/whl/nightly torch
25
+ conda run -p ${ENV_NAME} python3 -mpip install delocate
26
+ conda run -p ${ENV_NAME} python3 setup.py bdist_wheel
27
+ conda env remove -p ${ENV_NAME}
22
28
- name : Upload TorchVision wheel
23
29
uses : actions/upload-artifact@v3
24
30
with :
25
- name : torchvision-py3.8 -macos11-m1
31
+ name : torchvision-py${{ matrix.py_vers }} -macos11-m1
26
32
path : dist/
27
33
You can’t perform that action at this time.
0 commit comments