Commit c5417c20 authored by yan.yan's avatar yan.yan
Browse files

disable CI if change isn't related to build

parent 12635ab6
......@@ -19,12 +19,21 @@ jobs:
cuda-version: ['11.1', '11.4']
steps:
- uses: actions/checkout@master
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
nobuild:
- 'README.md'
- 'docs/**'
- 'example/**'
- 'spconv/pytorch/**'
- name: Install CUDA
env:
CUDA_VERSION: ${{ matrix.cuda-version }}
PYTHON_VERSION: ${{ matrix.python-version }}
cuda: ${{ matrix.cuda-version }}
if: (github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) && (env.CUDA_VERSION != '') ) || (env.PYTHON_VERSION == '3.10')
if: (github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) && (env.CUDA_VERSION != '') ) || ((steps.changes.outputs.nobuild == 'false') && env.PYTHON_VERSION == '3.10')
shell: powershell
run: .\tools\install_windows_cuda.ps1
- name: Set up Python ${{ matrix.python-version }}
......@@ -42,7 +51,7 @@ jobs:
env:
CUDA_VERSION: ${{ matrix.cuda-version }}
PYTHON_VERSION: ${{ matrix.python-version }}
if: (github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) ) || (env.PYTHON_VERSION == '3.10')
if: ((github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) ) || ((steps.changes.outputs.nobuild == 'false') && env.PYTHON_VERSION == '3.10')
run: |
$Env:CUMM_CUDA_VERSION = "${{ matrix.cuda-version }}"
$Env:CUMM_CUDA_ARCH_LIST = "all"
......@@ -53,7 +62,7 @@ jobs:
shell: powershell
- name: Publish a Python distribution to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
run: |
$Env:TWINE_USERNAME = "__token__"
$Env:TWINE_PASSWORD = "${{ secrets.pypi_password }}"
......@@ -70,6 +79,15 @@ jobs:
steps:
- uses: actions/checkout@master
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
nobuild:
- 'README.md'
- 'docs/**'
- 'example/**'
- 'spconv/pytorch/**'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
......@@ -87,7 +105,7 @@ jobs:
PYTHON_VERSION: ${{ matrix.python-version }}
DOCKER_IMAGE: scrin/manylinux2014-cuda:cu${{ matrix.cuda-version }}-devel-1.0.0
PLAT: manylinux2014_x86_64
if: (github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) && (env.CUDA_VERSION != '') ) || (env.PYTHON_VERSION == '3.10')
if: (github.event_name == 'push' && (startsWith(github.ref, 'refs/tags')) && (env.CUDA_VERSION != '') ) || ((steps.changes.outputs.nobuild == 'false') && (env.PYTHON_VERSION == '3.10'))
run: |
chmod +x tools/build-wheels.sh
docker run --rm -e PLAT=$PLAT -e CUMM_CUDA_VERSION=${{ matrix.cuda-version }} -e SPCONV_PYTHON_LIST=${{env.PYTHON_VERSION}} -v `pwd`:/io $DOCKER_IMAGE bash -c "source /etc/bashrc && /io/tools/build-wheels.sh"
......
......@@ -28,6 +28,8 @@
* VoxelGenerator has been replaced by Point2VoxelGPU[1-4]d/Point2VoxelCPU[1-4]d.
* spconv 2.x don't support CPU for now
* test spconv 2.x in spconv 1.x model: set environment variable before run program. Linux: ```export SPCONV_FILTER_HWIO="1"```, Windows powershell: ```$Env:SPCONV_FILTER_HWIO = "1"```
## News in Spconv 2.0.0
* training/inference speed is increased
......@@ -84,6 +86,10 @@ You need to rebuild ```cumm``` first if you are build along a CUDA version that
4. run ```$Env:SPCONV_DISABLE_JIT = "1"```
5. run ```python setup.py install```/```pip install -e .```/```python setup.py bdist_wheel```+```pip install dists/xxx.whl```
## Documents
see docs/USAGE.md.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment