forked from facebookresearch/xformers
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (68 loc) · 1.93 KB
/
wheels.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
name: wheels
on:
pull_request:
paths:
- "packaging/compute_wheel_version.sh"
- ".github/workflows/wheel*"
- "setup.py"
- "requirements*.txt"
push:
branches:
- main
tags:
- "v[0-9]+*"
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- windows-2019
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
torch_version:
- "2.0.1"
- "1.13.1"
- "1.12.1"
exclude:
# py311 only works with PyTorch >= 2.0
- python: "3.11"
torch_version: "1.12.1"
- python: "3.11"
torch_version: "1.13.1"
include:
- sdist: false
enabled: true
publish: false
cuda_short_version: "CUDA_VERSION_NOT_SET"
# Publish only for latest pytorch
- torch_version: "2.0.1"
publish: true
# Publish source distribution only from this runner
- os: ubuntu-22.04
python: "3.10"
torch_version: "2.0.1"
sdist: true
# Set corresponding CUDA version
- torch_version: "2.0.1"
cuda_short_version: "118"
- torch_version: "1.13.1"
cuda_short_version: "117"
- torch_version: "1.12.1"
cuda_short_version: "116"
uses: ./.github/workflows/wheels_reusable.yml
if: github.repository == 'facebookresearch/xformers' || github.event_name == 'pull_request'
with:
os: ${{ matrix.os }}
python: ${{ matrix.python }}
torch_version: ${{ matrix.torch_version }}
cuda_short_version: ${{ matrix.cuda_short_version }}
publish: ${{ matrix.publish == true && github.event_name != 'pull_request'}}
sdist: ${{ matrix.sdist == true }}
twine_username: __token__
secrets:
twine_password: ${{ secrets.PYPI_TOKEN }}