Commit 7f7889ed authored by rusty1s's avatar rusty1s
Browse files

[skip ci] bash shell

parent 7394c6df
...@@ -10,11 +10,9 @@ jobs: ...@@ -10,11 +10,9 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
# os: [ubuntu-18.04, macos-10.15, windows-latest] os: [ubuntu-18.04, macos-10.15, windows-latest]
os: [ubuntu-18.04, windows-latest] python-version: [3.6, 3.7, 3.8, 3.9]
# python-version: [3.6, 3.7, 3.8, 3.9] torch-version: [1.8.0, 1.9.0]
python-version: [3.6]
# torch-version: [1.8.0, 1.9.0]
torch-version: [1.9.0] torch-version: [1.9.0]
cuda-version: ['cpu', 'cu101', 'cu102', 'cu111'] cuda-version: ['cpu', 'cu101', 'cu102', 'cu111']
exclude: exclude:
...@@ -46,27 +44,23 @@ jobs: ...@@ -46,27 +44,23 @@ jobs:
- name: Install PyTorch ${{ matrix.torch-version }}+${{ matrix.cuda-version }} - name: Install PyTorch ${{ matrix.torch-version }}+${{ matrix.cuda-version }}
if : ${{ runner.os != 'macOS' && (matrix.torch-version != '1.8.0' || matrix.cuda-version != 'cu102') }} if : ${{ runner.os != 'macOS' && (matrix.torch-version != '1.8.0' || matrix.cuda-version != 'cu102') }}
run: | run: |
pip install torch==${{ matrix.torch-version}}+${{ matrix.cuda-version }} -f https://download.pytorch.org/whl/torch_stable.html pip install --no-cache-dir torch==${{ matrix.torch-version}}+${{ matrix.cuda-version }} -f https://download.pytorch.org/whl/torch_stable.html
- name: Install PyTorch ${{ matrix.torch-version }}+${{ matrix.cuda-version }} - name: Install PyTorch ${{ matrix.torch-version }}+${{ matrix.cuda-version }}
if : ${{ runner.os == 'macOS' || (matrix.torch-version == '1.8.0' && matrix.cuda-version == 'cu102') }} if : ${{ runner.os == 'macOS' || (matrix.torch-version == '1.8.0' && matrix.cuda-version == 'cu102') }}
run: | run: |
pip install torch==${{ matrix.torch-version}} -f https://download.pytorch.org/whl/torch_stable.html pip install --no-cache-dir torch==${{ matrix.torch-version}} -f https://download.pytorch.org/whl/torch_stable.html
- name: Install main package for CPU - name: Install main package for CPU
if: ${{ matrix.cuda-version == 'cpu' }} if: ${{ matrix.cuda-version == 'cpu' }}
run: | run: |
pip install -e . FORCE_ONLY_CPU=1 pip install -e .
env:
FORCE_ONLY_CPU: 1
- name: Install main package with CUDA - name: Install main package with CUDA
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
pip install -e . FORCE_CUDA=1 pip install -e .
env:
FORCE_CUDA: 1
shell: shell:
bash bash
......
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