mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-06 22:17:06 +08:00
Co-authored-by: comfyanonymous <comfyanonymous@protonmail.com> Co-authored-by: AustinMroz <austinmroz@utexas.edu> Co-authored-by: comfyanonymous <121283862+comfyanonymous@users.noreply.github.com> Co-authored-by: Benjamin Lu <benceruleanlu@proton.me> Co-authored-by: Andrew Kvochko <kvochko@users.noreply.github.com> Co-authored-by: Pam <42671363+pamparamm@users.noreply.github.com> Co-authored-by: chaObserv <154517000+chaObserv@users.noreply.github.com> Co-authored-by: Yoland Yan <4950057+yoland68@users.noreply.github.com> Co-authored-by: guill <guill@users.noreply.github.com> Co-authored-by: Chenlei Hu <hcl@comfy.org> Co-authored-by: Terry Jia <terryjia88@gmail.com> Co-authored-by: Silver <65376327+silveroxides@users.noreply.github.com> Co-authored-by: Christian Byrne <cbyrne@comfy.org> Co-authored-by: catboxanon <122327233+catboxanon@users.noreply.github.com> Co-authored-by: liesen <liesen.dev@gmail.com> Co-authored-by: Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> Co-authored-by: Robin Huang <robin.j.huang@gmail.com> Co-authored-by: thot-experiment <thot@thiic.cc> Co-authored-by: thot experiment <94414189+thot-experiment@users.noreply.github.com>
72 lines
2.4 KiB
YAML
72 lines
2.4 KiB
YAML
name: "Windows Release dependencies"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
xformers:
|
|
description: 'xformers version'
|
|
required: false
|
|
type: string
|
|
default: ""
|
|
extra_dependencies:
|
|
description: 'extra dependencies'
|
|
required: false
|
|
type: string
|
|
default: ""
|
|
cu:
|
|
description: 'cuda version'
|
|
required: true
|
|
type: string
|
|
default: "128"
|
|
|
|
python_minor:
|
|
description: 'python minor version'
|
|
required: true
|
|
type: string
|
|
default: "12"
|
|
|
|
python_patch:
|
|
description: 'python patch version'
|
|
required: true
|
|
type: string
|
|
default: "10"
|
|
# push:
|
|
# branches:
|
|
# - master
|
|
|
|
jobs:
|
|
build_dependencies:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
|
|
|
|
- shell: bash
|
|
run: |
|
|
echo "@echo off
|
|
call update_comfyui.bat nopause
|
|
echo -
|
|
echo This will try to update pytorch and all python dependencies.
|
|
echo -
|
|
echo If you just want to update normally, close this and run update_comfyui.bat instead.
|
|
echo -
|
|
pause
|
|
..\python_embeded\python.exe -s -m pip install --upgrade torch torchvision torchaudio ${{ inputs.xformers }} --extra-index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} -r ../ComfyUI/requirements.txt pygit2
|
|
pause" > update_comfyui_and_python_dependencies.bat
|
|
|
|
python -m pip wheel --no-cache-dir torch torchvision torchaudio ${{ inputs.xformers }} ${{ inputs.extra_dependencies }} --extra-index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} -r requirements.txt pygit2 -w ./temp_wheel_dir
|
|
python -m pip install --no-cache-dir ./temp_wheel_dir/*
|
|
echo installed basic
|
|
ls -lah temp_wheel_dir
|
|
mv temp_wheel_dir cu${{ inputs.cu }}_python_deps
|
|
tar cf cu${{ inputs.cu }}_python_deps.tar cu${{ inputs.cu }}_python_deps
|
|
|
|
- uses: actions/cache/save@v4
|
|
with:
|
|
path: |
|
|
cu${{ inputs.cu }}_python_deps.tar
|
|
update_comfyui_and_python_dependencies.bat
|
|
key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
|