-
Notifications
You must be signed in to change notification settings - Fork 1.7k
76 lines (73 loc) · 2.17 KB
/
build_macos_wheel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: build macos wheel
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_macos10_wheel:
runs-on: macos-latest
if: contains(github.event.head_commit.message, 'Bump version to')
strategy:
matrix:
torch: [1.8.0, 1.9.0, 1.10.0, 1.11.0, 1.12.0, 1.13.0, 2.0.0, 2.1.0]
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
include:
- torch: 1.8.0
torchvision: 0.9.0
- torch: 1.9.0
torchvision: 0.10.0
- torch: 1.10.0
torchvision: 0.11.0
- torch: 1.11.0
torchvision: 0.12.0
- torch: 1.12.0
torchvision: 0.13.0
- torch: 1.13.0
torchvision: 0.14.0
- torch: 2.0.0
torchvision: 0.15.1
- torch: 2.1.0
torchvision: 0.16.0
exclude:
- torch: 1.8.0
python-version: '3.10'
- torch: 1.9.0
python-version: '3.10'
- torch: 1.10.0
python-version: '3.10'
- torch: 1.8.0
python-version: '3.11'
- torch: 1.9.0
python-version: '3.11'
- torch: 1.10.0
python-version: '3.11'
- torch: 1.10.0
python-version: '3.11'
- torch: 1.11.0
python-version: '3.11'
- torch: 1.12.0
python-version: '3.11'
- torch: 1.13.0
python-version: '3.11'
- torch: 2.0.0
python-version: 3.7
- torch: 2.1.0
python-version: 3.7
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install psutil
run: pip install psutil
- name: Install PyTorch
run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} --no-cache-dir
- name: Build and install
run: |
pip install wheel
python setup.py bdist_wheel
- uses: actions/upload-artifact@v3
with:
name: ${{matrix.torch}}
path: dist/