Skip to content

Commit 6f22228

Browse files
authored
Set version (#153)
* update * update * update * update * update
1 parent 4316657 commit 6f22228

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/building.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ jobs:
6464
if: ${{ runner.os != 'macOS' }}
6565
run: |
6666
VERSION=`sed -n "s/^__version__ = '\(.*\)'/\1/p" torch_cluster/__init__.py`
67-
sed -i "s/$VERSION/$VERSION+${{ matrix.cuda-version }}/" torch_cluster/__init__.py
67+
TORCH_VERSION=`echo "pt${{ matrix.torch-version }}" | sed "s/..$//" | sed "s/\.//g"`
68+
CUDA_VERSION=`echo ${{ matrix.cuda-version }}`
69+
echo "New version name: $VERSION+$TORCH_VERSION$CUDA_VERSION"
70+
sed -i "s/$VERSION/$VERSION+$TORCH_VERSION$CUDA_VERSION/" setup.py
71+
sed -i "s/$VERSION/$VERSION+$TORCH_VERSION$CUDA_VERSION/" torch_cluster/__init__.py
6872
shell:
6973
bash
7074

0 commit comments

Comments
 (0)