File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 44jobs :
55 build_vision :
66 runs-on : macos-m1
7+ strategy :
8+ matrix :
9+ py_vers : [ "3.8", "3.9", "3.10" ]
710 steps :
811 - name : Checkout repository
912 uses : actions/checkout@v2
1013 - name : Build TorchVision M1 wheel
1114 shell : arch -arch arm64 bash {0}
15+ env :
16+ ENV_NAME : conda-env-${{ github.run_id }}
17+ PY_VERS : ${{ matrix.py_vers }}
1218 run : |
1319 echo $PATH
1420 . ~/miniconda3/etc/profile.d/conda.sh
1521 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}
2228 - name : Upload TorchVision wheel
2329 uses : actions/upload-artifact@v3
2430 with :
25- name : torchvision-py3.8 -macos11-m1
31+ name : torchvision-py${{ matrix.py_vers }} -macos11-m1
2632 path : dist/
2733
You can’t perform that action at this time.
0 commit comments