Building rusty1s Conda #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Building rusty1s Conda | |
on: [workflow_dispatch] # yamllint disable-line rule:truthy | |
jobs: | |
conda-build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | |
torch-version: [1.12.0, 1.13.0, 2.0.0] | |
cuda-version: ['cpu', 'cu102', 'cu113', 'cu116', 'cu117', 'cu118'] | |
exclude: | |
- torch-version: 1.12.0 | |
python-version: '3.11' | |
- torch-version: 1.12.0 | |
cuda-version: 'cu117' | |
- torch-version: 1.12.0 | |
cuda-version: 'cu118' | |
- torch-version: 1.13.0 | |
python-version: '3.11' | |
- torch-version: 1.13.0 | |
cuda-version: 'cu102' | |
- torch-version: 1.13.0 | |
cuda-version: 'cu113' | |
- torch-version: 1.13.0 | |
cuda-version: 'cu118' | |
- torch-version: 2.0.0 | |
python-version: '3.7' | |
- torch-version: 2.0.0 | |
cuda-version: 'cu102' | |
- torch-version: 2.0.0 | |
cuda-version: 'cu113' | |
- torch-version: 2.0.0 | |
cuda-version: 'cu115' | |
- torch-version: 2.0.0 | |
cuda-version: 'cu116' | |
- os: macos-latest | |
cuda-version: 'cu102' | |
- os: macos-latest | |
cuda-version: 'cu113' | |
- os: macos-latest | |
cuda-version: 'cu116' | |
- os: macos-latest | |
cuda-version: 'cu117' | |
- os: macos-latest | |
cuda-version: 'cu118' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Conda for Python ${{ matrix.python-version }} | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Free up disk space | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
- name: Install Conda packages | |
run: | | |
conda install conda-build conda-verify --yes | |
shell: | |
bash -l {0} | |
- name: Build Conda package | |
run: | | |
./conda/pytorch-geometric/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }} | |
shell: | |
bash -l {0} | |
- name: Publish Conda package | |
run: | | |
conda install anaconda-client --yes | |
anaconda upload --force --label main $HOME/conda-bld/*/*.tar.bz2 | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.RUSTY1S_ANACONDA_TOKEN }} | |
shell: | |
bash -l {0} |