Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
91ed30dd
Unverified
Commit
91ed30dd
authored
Mar 17, 2023
by
Zaida Zhou
Committed by
GitHub
Mar 17, 2023
Browse files
Build macOS pre-built packages for PyTorch2.0 in CI (#2668)
* Add support for pytorch2.0 * minor fix * update
parent
3ad02efd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
.github/workflows/build_macos_wheel.yml
.github/workflows/build_macos_wheel.yml
+6
-2
.github/workflows/publish-to-pypi.yml
.github/workflows/publish-to-pypi.yml
+1
-1
No files found.
.github/workflows/build_macos_wheel.yml
View file @
91ed30dd
...
@@ -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
...
...
.github/workflows/publish-to-pypi.yml
View file @
91ed30dd
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment