@@ -2,6 +2,10 @@ name: Building Wheels
2
2
3
3
on : [workflow_dispatch]
4
4
5
+ defaults :
6
+ run :
7
+ shell : bash
8
+
5
9
jobs :
6
10
7
11
wheel :
@@ -10,15 +14,23 @@ jobs:
10
14
strategy :
11
15
fail-fast : false
12
16
matrix :
13
- os : [ubuntu-22.04, macos-14, windows-2019 , ubuntu-22.04-arm]
17
+ os : [ubuntu-22.04, macos-14, windows-2022 , ubuntu-22.04-arm]
14
18
python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
15
- torch-version : [2.7.0] # [2.6 .0]
16
- cuda-version : ['cpu', 'cu118', 'cu124', 'cu126', 'cu128']
19
+ torch-version : [2.8 .0]
20
+ cuda-version : ['cpu', 'cu118', 'cu124', 'cu126', 'cu128', 'cu129' ]
17
21
exclude :
18
22
- torch-version : 2.6.0
19
23
cuda-version : ' cu128'
24
+ - torch-version : 2.6.0
25
+ cuda-version : ' cu129'
20
26
- torch-version : 2.7.0
21
27
cuda-version : ' cu124'
28
+ - torch-version : 2.7.0
29
+ cuda-version : ' cu129'
30
+ - torch-version : 2.8.0
31
+ cuda-version : ' cu118'
32
+ - torch-version : 2.8.0
33
+ cuda-version : ' cu124'
22
34
- os : macos-14
23
35
cuda-version : ' cu118'
24
36
- os : macos-14
27
39
cuda-version : ' cu126'
28
40
- os : macos-14
29
41
cuda-version : ' cu128'
42
+ - os : macos-14
43
+ cuda-version : ' cu129'
30
44
- os : ubuntu-22.04-arm
31
45
cuda-version : ' cu118'
32
46
- os : ubuntu-22.04-arm
@@ -35,14 +49,16 @@ jobs:
35
49
cuda-version : ' cu126'
36
50
- os : ubuntu-22.04-arm
37
51
cuda-version : ' cu128'
52
+ - os : ubuntu-22.04-arm
53
+ cuda-version : ' cu129'
38
54
39
55
steps :
40
- - uses : actions/checkout@v2
56
+ - uses : actions/checkout@v4
41
57
with :
42
58
submodules : ' recursive'
43
59
44
60
- name : Set up Python ${{ matrix.python-version }}
45
- uses : actions/setup-python@v2
61
+ uses : actions/setup-python@v5
46
62
with :
47
63
python-version : ${{ matrix.python-version }}
48
64
52
68
pip install wheel
53
69
54
70
- name : Install scipy
55
- if : ${{ ( matrix.python-version == '3.8') || (matrix.python-version == '3.9') }}
71
+ if : ${{ matrix.python-version == '3.9' }}
56
72
run : |
57
73
pip install scipy==1.10.1
58
74
80
96
echo "New version name: $VERSION+$TORCH_VERSION$CUDA_VERSION"
81
97
sed -i "s/$VERSION/$VERSION+$TORCH_VERSION$CUDA_VERSION/" setup.py
82
98
sed -i "s/$VERSION/$VERSION+$TORCH_VERSION$CUDA_VERSION/" torch_sparse/__init__.py
83
- shell :
84
- bash
85
99
86
100
- name : Install torch-scatter
87
101
run : |
@@ -91,26 +105,30 @@ jobs:
91
105
if : ${{ runner.os != 'Windows' }}
92
106
run : |
93
107
bash .github/workflows/metis.sh
108
+ echo WITH_METIS=1 >> $GITHUB_ENV
94
109
95
110
- name : Install METIS on Windows
96
111
if : ${{ runner.os == 'Windows' }}
97
112
run : |
98
- bash .github/workflows/metis-${{ runner.os }}.sh
113
+ # bash .github/workflows/metis-${{ runner.os }}.sh
114
+ echo WITH_METIS=0 >> $GITHUB_ENV
99
115
100
116
- name : Build wheel for CPU
101
117
if : ${{ matrix.cuda-version == 'cpu' }}
102
118
run : |
103
- FORCE_ONLY_CPU=1 WITH_METIS=1 python setup.py bdist_wheel --dist-dir=dist
104
- shell :
105
- bash
119
+ python setup.py bdist_wheel --dist-dir=dist
120
+ env :
121
+ FORCE_ONLY_CPU : 1
122
+ WITH_METIS : ${{ env.WITH_METIS }}
106
123
107
124
- name : Build wheel for GPU
108
125
if : ${{ matrix.cuda-version != 'cpu' }}
109
126
run : |
110
127
source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
111
- FORCE_CUDA=1 WITH_METIS=1 python setup.py bdist_wheel --dist-dir=dist
112
- shell :
113
- bash
128
+ python setup.py bdist_wheel --dist-dir=dist
129
+ env :
130
+ FORCE_CUDA : 1
131
+ WITH_METIS : ${{ env.WITH_METIS }}
114
132
115
133
- name : Configure AWS
116
134
uses : aws-actions/configure-aws-credentials@v1
0 commit comments