@@ -2,6 +2,10 @@ name: Building Wheels
22
33on : [workflow_dispatch]
44
5+ defaults :
6+ run :
7+ shell : bash
8+
59jobs :
610
711 wheel :
@@ -10,15 +14,23 @@ jobs:
1014 strategy :
1115 fail-fast : false
1216 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]
1418 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' ]
1721 exclude :
1822 - torch-version : 2.6.0
1923 cuda-version : ' cu128'
24+ - torch-version : 2.6.0
25+ cuda-version : ' cu129'
2026 - torch-version : 2.7.0
2127 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'
2234 - os : macos-14
2335 cuda-version : ' cu118'
2436 - os : macos-14
2739 cuda-version : ' cu126'
2840 - os : macos-14
2941 cuda-version : ' cu128'
42+ - os : macos-14
43+ cuda-version : ' cu129'
3044 - os : ubuntu-22.04-arm
3145 cuda-version : ' cu118'
3246 - os : ubuntu-22.04-arm
@@ -35,14 +49,16 @@ jobs:
3549 cuda-version : ' cu126'
3650 - os : ubuntu-22.04-arm
3751 cuda-version : ' cu128'
52+ - os : ubuntu-22.04-arm
53+ cuda-version : ' cu129'
3854
3955 steps :
40- - uses : actions/checkout@v2
56+ - uses : actions/checkout@v4
4157 with :
4258 submodules : ' recursive'
4359
4460 - name : Set up Python ${{ matrix.python-version }}
45- uses : actions/setup-python@v2
61+ uses : actions/setup-python@v5
4662 with :
4763 python-version : ${{ matrix.python-version }}
4864
5268 pip install wheel
5369
5470 - name : Install scipy
55- if : ${{ ( matrix.python-version == '3.8') || (matrix.python-version == '3.9') }}
71+ if : ${{ matrix.python-version == '3.9' }}
5672 run : |
5773 pip install scipy==1.10.1
5874
8096 echo "New version name: $VERSION+$TORCH_VERSION$CUDA_VERSION"
8197 sed -i "s/$VERSION/$VERSION+$TORCH_VERSION$CUDA_VERSION/" setup.py
8298 sed -i "s/$VERSION/$VERSION+$TORCH_VERSION$CUDA_VERSION/" torch_sparse/__init__.py
83- shell :
84- bash
8599
86100 - name : Install torch-scatter
87101 run : |
@@ -91,26 +105,30 @@ jobs:
91105 if : ${{ runner.os != 'Windows' }}
92106 run : |
93107 bash .github/workflows/metis.sh
108+ echo WITH_METIS=1 >> $GITHUB_ENV
94109
95110 - name : Install METIS on Windows
96111 if : ${{ runner.os == 'Windows' }}
97112 run : |
98- bash .github/workflows/metis-${{ runner.os }}.sh
113+ # bash .github/workflows/metis-${{ runner.os }}.sh
114+ echo WITH_METIS=0 >> $GITHUB_ENV
99115
100116 - name : Build wheel for CPU
101117 if : ${{ matrix.cuda-version == 'cpu' }}
102118 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 }}
106123
107124 - name : Build wheel for GPU
108125 if : ${{ matrix.cuda-version != 'cpu' }}
109126 run : |
110127 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 }}
114132
115133 - name : Configure AWS
116134 uses : aws-actions/configure-aws-credentials@v1
0 commit comments