Commit d7276c62 authored by rusty1s's avatar rusty1s
Browse files

[skip ci] bash shell

parent 6cf70ead
...@@ -39,37 +39,37 @@ jobs: ...@@ -39,37 +39,37 @@ jobs:
run: | run: |
pip install --upgrade pip pip install --upgrade pip
- name: Install CUDA ${{ matrix.cuda-version }} # - name: Install CUDA ${{ matrix.cuda-version }}
if: ${{ matrix.cuda-version != 'cpu' }} # if: ${{ matrix.cuda-version != 'cpu' }}
run: | # run: |
bash .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}.sh # bash .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}.sh
- name: Install PyTorch ${{ matrix.torch-version }}+${{ matrix.cuda-version }} - name: Install PyTorch ${{ matrix.torch-version }}+${{ matrix.cuda-version }}
run: | run: |
pip install numpy
pip install --no-index --no-cache-dir --verbose torch==${{ matrix.torch-version}} -f https://download.pytorch.org/whl/${{ matrix.cuda-version }}/torch_stable.html pip install --no-index --no-cache-dir --verbose torch==${{ matrix.torch-version}} -f https://download.pytorch.org/whl/${{ matrix.cuda-version }}/torch_stable.html
python -c "import torch; print('PyTorch:', torch.__version__)" python -c "import torch; print('PyTorch:', torch.__version__)"
python -c "import torch; print('CUDA: ', torch.__version__)" python -c "import torch; print('CUDA: ', torch.version.cuda)"
pip install numpy
- name: Install main package for CPU # - name: Install main package for CPU
if: ${{ matrix.cuda-version == 'cpu' }} # if: ${{ matrix.cuda-version == 'cpu' }}
run: | # run: |
FORCE_ONLY_CPU=1 pip install -e . # FORCE_ONLY_CPU=1 pip install -e .
shell: # shell:
bash # bash
- name: Install main package for GPU # - name: Install main package for GPU
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 pip install -e . # FORCE_CUDA=1 pip install -e .
shell: # shell:
bash # bash
- name: Build wheel # - name: Build wheel
run: | # run: |
pip install wheel # pip install wheel
python setup.py bdist_wheel --dist-dir=dist # python setup.py bdist_wheel --dist-dir=dist
# - name: Upload wheel # - name: Upload wheel
# uses: shallwefootball/s3-upload-action@master # uses: shallwefootball/s3-upload-action@master
......
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