"vscode:/vscode.git/clone" did not exist on "4ea489d3bfc119ab4ceb50f999ce611690dc21e2"
Commit afcce1a1 authored by Casper's avatar Casper
Browse files

Add Windows build to workflow

parent 1a3acf02
...@@ -39,8 +39,8 @@ jobs: ...@@ -39,8 +39,8 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-20.04] os: [ubuntu-20.04, windows-latest]
pyver: ["3.8", "3.9", "3.10"] pyver: ["3.8", "3.9", "3.10", "3.11"]
cuda: ["11.8"] cuda: ["11.8"]
defaults: defaults:
run: run:
...@@ -73,6 +73,11 @@ jobs: ...@@ -73,6 +73,11 @@ jobs:
conda install pytorch "pytorch-cuda=${env:CUDA_VERSION}" -c pytorch -c nvidia conda install pytorch "pytorch-cuda=${env:CUDA_VERSION}" -c pytorch -c nvidia
python -m pip install --upgrade build setuptools wheel ninja python -m pip install --upgrade build setuptools wheel ninja
# Environment variables
Add-Content $env:GITHUB_ENV "CUDA_PATH=$env:CONDA_PREFIX"
Add-Content $env:GITHUB_ENV "CUDA_HOME=$env:CONDA_PREFIX"
if ($IsLinux) {$env:LD_LIBRARY_PATH = $env:CONDA_PREFIX + '/lib:' + $env:LD_LIBRARY_PATH}
# Print version information # Print version information
python --version python --version
python -c "import torch; print('PyTorch:', torch.__version__)" python -c "import torch; print('PyTorch:', torch.__version__)"
...@@ -81,11 +86,6 @@ jobs: ...@@ -81,11 +86,6 @@ jobs:
- name: Build Wheel - name: Build Wheel
run: | run: |
$env:CUDA_PATH = $env:CONDA_PREFIX
$env:CUDA_HOME = $env:CONDA_PREFIX
if ($IsLinux) {$env:LD_LIBRARY_PATH = $env:CONDA_PREFIX + '/lib:' + $env:LD_LIBRARY_PATH}
$env:TORCH_CUDA_ARCH_LIST = '8.0 8.6 8.9 9.0+PTX'
python setup.py sdist bdist_wheel python setup.py sdist bdist_wheel
- name: Upload Assets - name: Upload Assets
......
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