Commit c47e71b6 authored by rusty1s's avatar rusty1s
Browse files

[skip ci] build conda

parent 662544b3
...@@ -52,7 +52,7 @@ jobs: ...@@ -52,7 +52,7 @@ jobs:
- name: Build Conda package for CPU - name: Build Conda package for CPU
if: ${{ matrix.cuda-version == 'cpu' }} if: ${{ matrix.cuda-version == 'cpu' }}
run: | run: |
FORCE_CUDA=0 ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }} FORCE_CUDA=0 ./conda/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
shell: shell:
bash -l {0} bash -l {0}
...@@ -60,14 +60,14 @@ jobs: ...@@ -60,14 +60,14 @@ jobs:
if: ${{ matrix.cuda-version != 'cpu' }} if: ${{ matrix.cuda-version != 'cpu' }}
run: | run: |
source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
FORCE_CUDA=1 ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }} FORCE_CUDA=1 ./conda/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
shell: shell:
bash -l {0} bash -l {0}
- name: Publish Conda package - name: Publish Conda package
run: | run: |
conda install anaconda-client --yes conda install anaconda-client --yes
anaconda upload --force --label main $HOME/conda-bld/*/*.tar.bz2 anaconda upload --force --label main ./conda/*/*.tar.bz2
env: env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
shell: shell:
......
...@@ -30,4 +30,4 @@ echo "PyTorch $TORCH_VERSION+$CUDA_VERSION" ...@@ -30,4 +30,4 @@ echo "PyTorch $TORCH_VERSION+$CUDA_VERSION"
echo "- $CONDA_PYTORCH_CONSTRAINT" echo "- $CONDA_PYTORCH_CONSTRAINT"
echo "- $CONDA_CUDATOOLKIT_CONSTRAINT" echo "- $CONDA_CUDATOOLKIT_CONSTRAINT"
conda build . -c defaults -c nvidia -c pytorch --output-folder "$HOME/conda-bld/" conda build . -c defaults -c nvidia -c pytorch --output-folder .
...@@ -6,6 +6,9 @@ source: ...@@ -6,6 +6,9 @@ source:
path: ../.. path: ../..
requirements: requirements:
build:
- {{ compiler('c') }} # [win]
host: host:
- python {{ environ.get('PYTHON_VERSION') }} - python {{ environ.get('PYTHON_VERSION') }}
- {{ environ.get('CONDA_PYTORCH_CONSTRAINT') }} - {{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
......
...@@ -19,8 +19,6 @@ if os.getenv('FORCE_ONLY_CPU', '0') == '1': ...@@ -19,8 +19,6 @@ if os.getenv('FORCE_ONLY_CPU', '0') == '1':
BUILD_DOCS = os.getenv('BUILD_DOCS', '0') == '1' BUILD_DOCS = os.getenv('BUILD_DOCS', '0') == '1'
print('FORCE CUDA', suffices)
def get_extensions(): def get_extensions():
extensions = [] extensions = []
......
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