Skip to content

Commit 9ab357c

Browse files
committed
build: only windows runners support CUDA
1 parent 1a8446b commit 9ab357c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy_github.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,20 @@ jobs:
3232
pip install setuptools wheel twine
3333
# https://github.com/luispedro/mahotas/issues/144
3434
pip install mahotas==1.4.13
35-
# Install torch with CUDA support
36-
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
37-
pip install .[cli,gui,torch]
35+
pip install .[cli,gui]
3836
- name: Build macOS app
3937
if: runner.os == 'macOS'
4038
working-directory: ./build-recipes
4139
run: |
40+
# Install torch with CPU support
41+
pip install torch==2.3.1+cpu torchvision==0.18.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
4242
bash ./macos_build_app.sh ChipStream ${{ env.RELEASE_VERSION }}
4343
- name: Build windows executable
4444
if: runner.os == 'windows'
4545
working-directory: ./build-recipes
4646
run: |
47+
# Install torch with CUDA support
48+
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
4749
pip install -r win_build_requirements.txt
4850
pyinstaller -y --log-level=WARN win_ChipStream.spec
4951
dir

0 commit comments

Comments
 (0)