Unverified Commit 91ed30dd authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

Build macOS pre-built packages for PyTorch2.0 in CI (#2668)

* Add support for pytorch2.0

* minor fix

* update
parent 3ad02efd
...@@ -12,8 +12,8 @@ jobs: ...@@ -12,8 +12,8 @@ jobs:
if: contains(github.event.head_commit.message, 'Bump version to') if: contains(github.event.head_commit.message, 'Bump version to')
strategy: strategy:
matrix: matrix:
torch: [1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.10.0, 1.11.0, 1.12.0, 1.13.0] torch: [1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.10.0, 1.11.0, 1.12.0, 1.13.0, 2.0.0]
python-version: [3.7, 3.8, 3.9, '3.10'] python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
include: include:
- torch: 1.6.0 - torch: 1.6.0
torchvision: 0.7.0 torchvision: 0.7.0
...@@ -31,6 +31,8 @@ jobs: ...@@ -31,6 +31,8 @@ jobs:
torchvision: 0.13.0 torchvision: 0.13.0
- torch: 1.13.0 - torch: 1.13.0
torchvision: 0.14.0 torchvision: 0.14.0
- torch: 2.0.0
torchvision: 0.15.1
exclude: exclude:
- torch: 1.6.0 - torch: 1.6.0
python-version: 3.9 python-version: 3.9
...@@ -46,6 +48,8 @@ jobs: ...@@ -46,6 +48,8 @@ jobs:
python-version: '3.10' python-version: '3.10'
- torch: 1.10.0 - torch: 1.10.0
python-version: '3.10' python-version: '3.10'
- torch: 2.0.0
python-version: 3.7
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
......
...@@ -21,7 +21,7 @@ jobs: ...@@ -21,7 +21,7 @@ jobs:
- name: Build MMCV - name: Build MMCV
run: | run: |
sed -i "s/os.getenv('MMCV_WITH_OPS', '1')/os.getenv('MMCV_WITH_OPS', '0')/g" setup.py sed -i "s/os.getenv('MMCV_WITH_OPS', '1')/os.getenv('MMCV_WITH_OPS', '0')/g" setup.py
python setup.py sdist python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI - name: Publish distribution to PyPI
run: | run: |
pip install twine pip install twine
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment