Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions .github/workflows/building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
- name: Upgrade pip
run: |
pip install --upgrade setuptools
pip install wheel

- name: Install scipy
if: ${{ (matrix.python-version == '3.8') || (matrix.python-version == '3.9') }}
Expand Down Expand Up @@ -96,30 +97,21 @@ jobs:
run: |
bash .github/workflows/metis-${{ runner.os }}.sh

- name: Install main package for CPU
- name: Build wheel for CPU
if: ${{ matrix.cuda-version == 'cpu' }}
run: |
FORCE_ONLY_CPU=1 WITH_METIS=1 pip install -v -e . --no-build-isolation
FORCE_ONLY_CPU=1 WITH_METIS=1 python setup.py bdist_wheel --dist-dir=dist
shell:
bash

- name: Install main package for GPU
- name: Build wheel for GPU
if: ${{ matrix.cuda-version != 'cpu' }}
run: |
source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
FORCE_CUDA=1 WITH_METIS=1 pip install -v -e . --no-build-isolation
FORCE_CUDA=1 WITH_METIS=1 python setup.py bdist_wheel --dist-dir=dist
shell:
bash

- name: Test installation
run: |
python -c "import torch_sparse; print('torch-sparse:', torch_sparse.__version__)"

- name: Build wheel
run: |
pip install wheel
python setup.py bdist_wheel --dist-dir=dist

- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
Loading