|
18 | 18 | jobs:
|
19 | 19 | build_wheels:
|
20 | 20 | name: "Build TorchVision M1 wheels"
|
21 |
| - runs-on: macos-m1 |
| 21 | + runs-on: macos-m1-12 |
22 | 22 | strategy:
|
23 | 23 | matrix:
|
24 | 24 | py_vers: [ "3.8", "3.9", "3.10" ]
|
@@ -54,13 +54,12 @@ jobs:
|
54 | 54 | setup_build_version
|
55 | 55 | fi
|
56 | 56 |
|
57 |
| - WHL_NAME=torchvision-${BUILD_VERSION}-cp${PY_VERS/.}-cp${PY_VERS/.}-macosx_11_0_arm64.whl |
58 | 57 | conda create -yp ${ENV_NAME} python=${PY_VERS} numpy libpng jpeg wheel pkg-config
|
59 | 58 | conda run -p ${ENV_NAME} python3 -mpip install torch --pre --extra-index-url=https://download.pytorch.org/whl/${CHANNEL}
|
60 | 59 | conda run -p ${ENV_NAME} python3 -mpip install delocate
|
61 | 60 | conda run -p ${ENV_NAME} python3 setup.py bdist_wheel
|
62 | 61 | export PYTORCH_VERSION="$(conda run -p ${ENV_NAME} python3 -mpip show torch | grep ^Version: | sed 's/Version: *//')"
|
63 |
| - conda run -p ${ENV_NAME} DYLD_FALLBACK_LIBRARY_PATH="${ENV_NAME}/lib" delocate-wheel -v --ignore-missing-dependencies dist/${WHL_NAME} |
| 62 | + conda run -p ${ENV_NAME} DYLD_FALLBACK_LIBRARY_PATH="${ENV_NAME}/lib" delocate-wheel -v --ignore-missing-dependencies dist/*.whl |
64 | 63 | conda env remove -p ${ENV_NAME}
|
65 | 64 | - name: Test wheel
|
66 | 65 | shell: arch -arch arm64 bash {0}
|
|
95 | 94 | done
|
96 | 95 | build_conda:
|
97 | 96 | name: "Build TorchVision M1 conda packages"
|
98 |
| - runs-on: macos-m1 |
| 97 | + runs-on: macos-m1-12 |
99 | 98 | strategy:
|
100 | 99 | matrix:
|
101 | 100 | py_vers: [ "3.8", "3.9", "3.10" ]
|
@@ -139,9 +138,13 @@ jobs:
|
139 | 138 |
|
140 | 139 | setup_conda_pytorch_constraint
|
141 | 140 | export SOURCE_ROOT_DIR=$(pwd)
|
142 |
| - conda build -c defaults $CONDA_CHANNEL_FLAGS --no-anaconda-upload --python "$PYTHON_VERSION" packaging/torchvision |
143 |
| - mkdir -p dist |
144 |
| - cp ~/miniconda3/conda-bld/osx-arm64/*.tar.bz2 dist/ |
| 141 | + conda build \ |
| 142 | + -c defaults \ |
| 143 | + $CONDA_CHANNEL_FLAGS \ |
| 144 | + --no-anaconda-upload \ |
| 145 | + --python "$PYTHON_VERSION" \ |
| 146 | + --output-folder=dist/ \ |
| 147 | + packaging/torchvision |
145 | 148 | - name: Upload package to GitHub
|
146 | 149 | uses: actions/upload-artifact@v3
|
147 | 150 | with:
|
|
0 commit comments