name: Building Conda on: [workflow_dispatch] jobs: conda-build: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-16.04, macos-10.15, windows-latest] # python-version: [3.6, 3.7, 3.8, 3.9] python-version: [3.9] # torch-version: [1.8.0, 1.9.0] torch-version: [1.9.0] # cuda-version: ['cpu', 'cu101', 'cu102', 'cu111'] cuda-version: ['cpu', 'cu102'] exclude: - torch-version: 1.9.0 cuda-version: 'cu101' - os: macos-10.15 cuda-version: 'cu101' - os: macos-10.15 cuda-version: 'cu102' - os: macos-10.15 cuda-version: 'cu111' - os: windows-latest cuda-version: 'cu101' steps: - uses: actions/checkout@v2 - name: Set up Conda for Python ${{ matrix.python-version }} uses: conda-incubator/setup-miniconda@v2 with: python-version: ${{ matrix.python-version }} - name: Install Conda packages run: | conda install conda-build conda-verify anaconda-client --yes shell: bash - name: Install CUDA ${{ matrix.cuda-version }} if: ${{ matrix.cuda-version != 'cpu' }} run: | bash .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}.sh shell: bash - name: Build Conda package for CPU if: ${{ matrix.cuda-version == 'cpu' }} run: | FORCE_CUDA=0 ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }} shell: bash - name: Build Conda package for GPU if: ${{ matrix.cuda-version != 'cpu' }} run: | 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 }} shell: bash # - name: Publish Conda package # run: | # $CONDA/bin/anaconda upload --label main $HOME/conda-bld/*/*.tar.bz2 # env: # ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}