2023-10-06 14:26:51 +00:00
|
|
|
name: "Windows Release dependencies"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
xformers:
|
|
|
|
description: 'xformers version'
|
2023-10-06 14:29:52 +00:00
|
|
|
required: false
|
2023-10-06 14:26:51 +00:00
|
|
|
type: string
|
|
|
|
default: ""
|
2024-07-27 08:41:46 +00:00
|
|
|
extra_dependencies:
|
|
|
|
description: 'extra dependencies'
|
|
|
|
required: false
|
|
|
|
type: string
|
2024-10-17 23:15:17 +00:00
|
|
|
default: ""
|
2023-10-06 14:26:51 +00:00
|
|
|
cu:
|
|
|
|
description: 'cuda version'
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-07-27 08:41:46 +00:00
|
|
|
default: "124"
|
2023-10-06 14:26:51 +00:00
|
|
|
|
|
|
|
python_minor:
|
|
|
|
description: 'python minor version'
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-10-13 10:59:31 +00:00
|
|
|
default: "12"
|
2023-10-06 14:26:51 +00:00
|
|
|
|
|
|
|
python_patch:
|
|
|
|
description: 'python patch version'
|
|
|
|
required: true
|
|
|
|
type: string
|
2024-10-13 10:59:31 +00:00
|
|
|
default: "7"
|
2023-10-06 14:26:51 +00:00
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_dependencies:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2024-07-01 21:15:49 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
2023-10-06 14:26:51 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
|
|
|
|
|
|
|
|
- shell: bash
|
|
|
|
run: |
|
2023-10-06 16:49:40 +00:00
|
|
|
echo "@echo off
|
2024-02-26 13:33:01 +00:00
|
|
|
call update_comfyui.bat nopause
|
2023-10-07 15:57:32 +00:00
|
|
|
echo -
|
2024-02-26 13:33:01 +00:00
|
|
|
echo This will try to update pytorch and all python dependencies.
|
2023-10-07 15:57:32 +00:00
|
|
|
echo -
|
2023-10-06 16:49:40 +00:00
|
|
|
echo If you just want to update normally, close this and run update_comfyui.bat instead.
|
2023-10-07 15:57:32 +00:00
|
|
|
echo -
|
2023-10-06 16:49:40 +00:00
|
|
|
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
|
|
|
|
|
2024-07-27 08:41:46 +00:00
|
|
|
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
|
2023-10-06 14:26:51 +00:00
|
|
|
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
|
|
|
|
|
2024-07-01 21:15:49 +00:00
|
|
|
- uses: actions/cache/save@v4
|
2023-10-06 14:26:51 +00:00
|
|
|
with:
|
2023-10-06 16:49:40 +00:00
|
|
|
path: |
|
|
|
|
cu${{ inputs.cu }}_python_deps.tar
|
|
|
|
update_comfyui_and_python_dependencies.bat
|
2023-10-06 14:26:51 +00:00
|
|
|
key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
|