mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-07-17 12:57:01 +08:00
Formatting/cleanup
This commit is contained in:
parent
967b0b6aa6
commit
77759ef62e
18
.github/workflows/pullrequest-ci-run.yml
vendored
18
.github/workflows/pullrequest-ci-run.yml
vendored
@ -1,9 +1,10 @@
|
|||||||
# This is the GitHub Workflow that drives full-GPU-enabled tests of pull requests to ComfyUI, when the 'Run-CI-Test' label is added
|
# This is the GitHub Workflow that drives full-GPU-enabled tests of pull requests to ComfyUI, when the 'Run-CI-Test' label is added
|
||||||
# Results are reported as checkmarks on the commits, as well as onto https://ci.comfy.org/
|
# Results are reported as checkmarks on the commits, as well as onto https://ci.comfy.org/
|
||||||
name: Pull Request CI Workflow Runs
|
name: Pull Request CI Workflow Runs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [labeled]
|
types: labeled
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pr-test-stable:
|
pr-test-stable:
|
||||||
@ -12,19 +13,19 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos, linux, windows]
|
os: [macos, linux, windows]
|
||||||
python_version: ["3.9", "3.10", "3.11", "3.12"]
|
python_version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
||||||
cuda_version: ["12.1"]
|
cuda_version: ['12.1']
|
||||||
torch_version: ["stable"]
|
torch_version: ['stable']
|
||||||
include:
|
include:
|
||||||
- os: macos
|
- os: macos
|
||||||
runner_label: [self-hosted, macOS]
|
runner_label: [self-hosted, macOS]
|
||||||
flags: "--use-pytorch-cross-attention"
|
flags: '--use-pytorch-cross-attention'
|
||||||
- os: linux
|
- os: linux
|
||||||
runner_label: [self-hosted, Linux]
|
runner_label: [self-hosted, Linux]
|
||||||
flags: ""
|
flags: ''
|
||||||
- os: windows
|
- os: windows
|
||||||
runner_label: [self-hosted, Windows]
|
runner_label: [self-hosted, Windows]
|
||||||
flags: ""
|
flags: ''
|
||||||
runs-on: ${{ matrix.runner_label }}
|
runs-on: ${{ matrix.runner_label }}
|
||||||
steps:
|
steps:
|
||||||
- name: Test Workflows
|
- name: Test Workflows
|
||||||
@ -35,7 +36,8 @@ jobs:
|
|||||||
torch_version: ${{ matrix.torch_version }}
|
torch_version: ${{ matrix.torch_version }}
|
||||||
google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
|
google_credentials: ${{ secrets.GCS_SERVICE_ACCOUNT_JSON }}
|
||||||
comfyui_flags: ${{ matrix.flags }}
|
comfyui_flags: ${{ matrix.flags }}
|
||||||
use_prior_commit: 'true'
|
use_prior_commit: true
|
||||||
|
|
||||||
comment:
|
comment:
|
||||||
if: ${{ github.event.label.name == 'Run-CI-Test' }}
|
if: ${{ github.event.label.name == 'Run-CI-Test' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
6
.github/workflows/ruff.yml
vendored
6
.github/workflows/ruff.yml
vendored
@ -6,18 +6,14 @@ jobs:
|
|||||||
ruff:
|
ruff:
|
||||||
name: Run Ruff
|
name: Run Ruff
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install Ruff
|
- name: Install Ruff
|
||||||
run: pip install ruff
|
run: pip install ruff
|
||||||
|
|
||||||
- name: Run Ruff
|
- name: Run Ruff
|
||||||
run: ruff check .
|
run: ruff check .
|
||||||
|
31
.github/workflows/stable-release.yml
vendored
31
.github/workflows/stable-release.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: "Release Stable Version"
|
name: Release Stable Version
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -11,25 +11,28 @@ on:
|
|||||||
description: 'CUDA version'
|
description: 'CUDA version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "126"
|
default: '126'
|
||||||
python_minor:
|
python_minor:
|
||||||
description: 'Python minor version'
|
description: 'Python minor version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "12"
|
default: '12'
|
||||||
python_patch:
|
python_patch:
|
||||||
description: 'Python patch version'
|
description: 'Python patch version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "8"
|
default: '8'
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
package_comfy_windows:
|
package_comfy_windows:
|
||||||
permissions:
|
permissions:
|
||||||
contents: "write"
|
contents: write
|
||||||
packages: "write"
|
packages: write
|
||||||
pull-requests: "read"
|
pull-requests: read
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -44,25 +47,22 @@ jobs:
|
|||||||
cu${{ inputs.cu }}_python_deps.tar
|
cu${{ inputs.cu }}_python_deps.tar
|
||||||
update_comfyui_and_python_dependencies.bat
|
update_comfyui_and_python_dependencies.bat
|
||||||
key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
|
key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
mv cu${{ inputs.cu }}_python_deps.tar ../
|
mv cu${{ inputs.cu }}_python_deps.tar ../
|
||||||
mv update_comfyui_and_python_dependencies.bat ../
|
mv update_comfyui_and_python_dependencies.bat ../
|
||||||
cd ..
|
cd ..
|
||||||
tar xf cu${{ inputs.cu }}_python_deps.tar
|
tar xf cu${{ inputs.cu }}_python_deps.tar
|
||||||
pwd
|
pwd
|
||||||
ls
|
ls
|
||||||
|
- run: |
|
||||||
- shell: bash
|
|
||||||
run: |
|
|
||||||
cd ..
|
cd ..
|
||||||
cp -r ComfyUI ComfyUI_copy
|
cp -r ComfyUI ComfyUI_copy
|
||||||
curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-amd64.zip -o python_embedded.zip
|
curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-amd64.zip -o python_embedded.zip
|
||||||
unzip python_embedded.zip -d python_embedded
|
unzip python_embedded.zip -d python_embedded
|
||||||
cd python_embedded
|
cd python_embedded
|
||||||
echo ${{ env.MINOR_VERSION }}
|
echo ${{ inputs.python_minor }}
|
||||||
echo 'import site' >> ./python3${{ inputs.python_minor }}._pth
|
echo 'import site' >> ./python3${{ inputs.python_minor }}._pth
|
||||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
curl -fLO https://bootstrap.pypa.io/get-pip.py
|
||||||
./python.exe get-pip.py
|
./python.exe get-pip.py
|
||||||
./python.exe -s -m pip install ../cu${{ inputs.cu }}_python_deps/*
|
./python.exe -s -m pip install ../cu${{ inputs.cu }}_python_deps/*
|
||||||
sed -i '1i../ComfyUI' ./python3${{ inputs.python_minor }}._pth
|
sed -i '1i../ComfyUI' ./python3${{ inputs.python_minor }}._pth
|
||||||
@ -84,14 +84,13 @@ jobs:
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
"C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable.7z ComfyUI_windows_portable
|
7z a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable.7z ComfyUI_windows_portable
|
||||||
mv ComfyUI_windows_portable.7z ComfyUI/ComfyUI_windows_portable_nvidia.7z
|
mv ComfyUI_windows_portable.7z ComfyUI/ComfyUI_windows_portable_nvidia.7z
|
||||||
|
|
||||||
cd ComfyUI_windows_portable
|
cd ComfyUI_windows_portable
|
||||||
python_embedded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
|
python_embedded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
|
||||||
|
|
||||||
ls
|
ls
|
||||||
|
|
||||||
- name: Upload binaries to release
|
- name: Upload binaries to release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
|
5
.github/workflows/stale-issues.yml
vendored
5
.github/workflows/stale-issues.yml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: 'Close stale issues'
|
name: Close stale issues
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# Run daily at 430 am PT
|
# Run daily at 430 am PT
|
||||||
@ -12,7 +13,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v9
|
- uses: actions/stale@v9
|
||||||
with:
|
with:
|
||||||
stale-issue-message: "This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically."
|
stale-issue-message: 'This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically.'
|
||||||
days-before-stale: 30
|
days-before-stale: 30
|
||||||
days-before-close: 7
|
days-before-close: 7
|
||||||
stale-issue-label: 'Stale'
|
stale-issue-label: 'Stale'
|
||||||
|
8
.github/workflows/test-build.yml
vendored
8
.github/workflows/test-build.yml
vendored
@ -1,15 +1,13 @@
|
|||||||
name: Build package
|
name: Build package
|
||||||
|
|
||||||
#
|
#
|
||||||
# This workflow is a test of the python package build.
|
# This workflow is a test of the python package build.
|
||||||
# Install Python dependencies across different Python versions.
|
# Install Python dependencies across different Python versions.
|
||||||
#
|
#
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "requirements.txt"
|
- 'requirements.txt'
|
||||||
- ".github/workflows/test-build.yml"
|
- '.github/workflows/test-build.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -18,7 +16,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
31
.github/workflows/test-ci.yml
vendored
31
.github/workflows/test-ci.yml
vendored
@ -1,6 +1,7 @@
|
|||||||
# This is the GitHub Workflow that drives automatic full-GPU-enabled tests of all new commits to the master branch of ComfyUI
|
# This is the GitHub Workflow that drives automatic full-GPU-enabled tests of all new commits to the master branch of ComfyUI
|
||||||
# Results are reported as checkmarks on the commits, as well as onto https://ci.comfy.org/
|
# Results are reported as checkmarks on the commits, as well as onto https://ci.comfy.org/
|
||||||
name: Full Comfy CI Workflow Runs
|
name: Full Comfy CI Workflow Runs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -22,19 +23,19 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
# os: [macos, linux, windows]
|
# os: [macos, linux, windows]
|
||||||
os: [macos, linux]
|
os: [macos, linux]
|
||||||
python_version: ["3.9", "3.10", "3.11", "3.12"]
|
python_version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
||||||
cuda_version: ["12.1"]
|
cuda_version: ['12.1']
|
||||||
torch_version: ["stable"]
|
torch_version: ['stable']
|
||||||
include:
|
include:
|
||||||
- os: macos
|
- os: macos
|
||||||
runner_label: [self-hosted, macOS]
|
runner_label: [self-hosted, macOS]
|
||||||
flags: "--use-pytorch-cross-attention"
|
flags: '--use-pytorch-cross-attention'
|
||||||
- os: linux
|
- os: linux
|
||||||
runner_label: [self-hosted, Linux]
|
runner_label: [self-hosted, Linux]
|
||||||
flags: ""
|
flags: ''
|
||||||
# - os: windows
|
# - os: windows
|
||||||
# runner_label: [self-hosted, Windows]
|
# runner_label: [self-hosted, Windows]
|
||||||
# flags: ""
|
# flags: ''
|
||||||
runs-on: ${{ matrix.runner_label }}
|
runs-on: ${{ matrix.runner_label }}
|
||||||
steps:
|
steps:
|
||||||
- name: Test Workflows
|
- name: Test Workflows
|
||||||
@ -51,13 +52,13 @@ jobs:
|
|||||||
# fail-fast: true
|
# fail-fast: true
|
||||||
# matrix:
|
# matrix:
|
||||||
# os: [windows]
|
# os: [windows]
|
||||||
# python_version: ["3.9", "3.10", "3.11", "3.12"]
|
# python_version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
||||||
# cuda_version: ["12.1"]
|
# cuda_version: ['12.1']
|
||||||
# torch_version: ["nightly"]
|
# torch_version: ['nightly']
|
||||||
# include:
|
# include:
|
||||||
# - os: windows
|
# - os: windows
|
||||||
# runner_label: [self-hosted, Windows]
|
# runner_label: [self-hosted, Windows]
|
||||||
# flags: ""
|
# flags: ''
|
||||||
# runs-on: ${{ matrix.runner_label }}
|
# runs-on: ${{ matrix.runner_label }}
|
||||||
# steps:
|
# steps:
|
||||||
# - name: Test Workflows
|
# - name: Test Workflows
|
||||||
@ -74,16 +75,16 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos, linux]
|
os: [macos, linux]
|
||||||
python_version: ["3.11"]
|
python_version: ['3.11']
|
||||||
cuda_version: ["12.1"]
|
cuda_version: ['12.1']
|
||||||
torch_version: ["nightly"]
|
torch_version: ['nightly']
|
||||||
include:
|
include:
|
||||||
- os: macos
|
- os: macos
|
||||||
runner_label: [self-hosted, macOS]
|
runner_label: [self-hosted, macOS]
|
||||||
flags: "--use-pytorch-cross-attention"
|
flags: '--use-pytorch-cross-attention'
|
||||||
- os: linux
|
- os: linux
|
||||||
runner_label: [self-hosted, Linux]
|
runner_label: [self-hosted, Linux]
|
||||||
flags: ""
|
flags: ''
|
||||||
runs-on: ${{ matrix.runner_label }}
|
runs-on: ${{ matrix.runner_label }}
|
||||||
steps:
|
steps:
|
||||||
- name: Test Workflows
|
- name: Test Workflows
|
||||||
|
12
.github/workflows/test-launch.yml
vendored
12
.github/workflows/test-launch.yml
vendored
@ -2,9 +2,9 @@ name: Test server launches without errors
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, master ]
|
branches: master
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, master ]
|
branches: master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@ -12,9 +12,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout ComfyUI
|
- name: Checkout ComfyUI
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
repository: "comfyanonymous/ComfyUI"
|
|
||||||
path: "ComfyUI"
|
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
@ -24,22 +21,19 @@ jobs:
|
|||||||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install wait-for-it
|
pip install wait-for-it
|
||||||
working-directory: ComfyUI
|
|
||||||
- name: Start ComfyUI server
|
- name: Start ComfyUI server
|
||||||
run: |
|
run: |
|
||||||
python main.py --cpu 2>&1 | tee console_output.log &
|
python main.py --cpu 2>&1 | tee console_output.log &
|
||||||
wait-for-it --service 127.0.0.1:8188 -t 30
|
wait-for-it --service 127.0.0.1:8188 -t 30
|
||||||
working-directory: ComfyUI
|
|
||||||
- name: Check for unhandled exceptions in server log
|
- name: Check for unhandled exceptions in server log
|
||||||
run: |
|
run: |
|
||||||
if grep -qE "Exception|Error" console_output.log; then
|
if grep -qE "Exception|Error" console_output.log; then
|
||||||
echo "Unhandled exception/error found in server log."
|
echo "Unhandled exception/error found in server log."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
working-directory: ComfyUI
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: console-output
|
name: console-output
|
||||||
path: ComfyUI/console_output.log
|
path: console_output.log
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
7
.github/workflows/update-frontend.yml
vendored
7
.github/workflows/update-frontend.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: "Frontend version to update to (e.g., 1.0.0)"
|
description: 'Frontend version to update to (e.g., 1.0.0)'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@ -14,7 +14,6 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ComfyUI
|
- name: Checkout ComfyUI
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -47,8 +46,8 @@ jobs:
|
|||||||
uses: peter-evans/create-pull-request@v7
|
uses: peter-evans/create-pull-request@v7
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PR_BOT_PAT }}
|
token: ${{ secrets.PR_BOT_PAT }}
|
||||||
commit-message: "Update frontend to v${{ github.event.inputs.version }}"
|
commit-message: Update frontend to v${{ github.event.inputs.version }}
|
||||||
title: "Frontend Update: v${{ github.event.inputs.version }}"
|
title: 'Frontend Update: v${{ github.event.inputs.version }}'
|
||||||
body: |
|
body: |
|
||||||
Automated PR to update frontend content to version ${{ github.event.inputs.version }}
|
Automated PR to update frontend content to version ${{ github.event.inputs.version }}
|
||||||
|
|
||||||
|
9
.github/workflows/update-version.yml
vendored
9
.github/workflows/update-version.yml
vendored
@ -3,15 +3,14 @@ name: Update Version File
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "pyproject.toml"
|
- 'pyproject.toml'
|
||||||
branches:
|
branches: master
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-version:
|
update-version:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Don't run on fork PRs
|
# Don't run on fork PRs
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
contents: write
|
contents: write
|
||||||
@ -23,7 +22,7 @@ jobs:
|
|||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: "Windows Release dependencies"
|
name: Windows Release dependencies
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -7,33 +7,37 @@ on:
|
|||||||
description: 'xformers version'
|
description: 'xformers version'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ''
|
||||||
extra_dependencies:
|
extra_dependencies:
|
||||||
description: 'extra dependencies'
|
description: 'extra dependencies'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ''
|
||||||
cu:
|
cu:
|
||||||
description: 'cuda version'
|
description: 'cuda version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "126"
|
default: '126'
|
||||||
|
|
||||||
python_minor:
|
python_minor:
|
||||||
description: 'python minor version'
|
description: 'python minor version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "12"
|
default: '12'
|
||||||
|
|
||||||
python_patch:
|
python_patch:
|
||||||
description: 'python patch version'
|
description: 'python patch version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "8"
|
default: '8'
|
||||||
# push:
|
# push:
|
||||||
# branches:
|
# branches:
|
||||||
# - master
|
# - master
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_dependencies:
|
build_dependencies:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@ -42,9 +46,7 @@ jobs:
|
|||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
|
python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
|
||||||
|
- run: |
|
||||||
- shell: bash
|
|
||||||
run: |
|
|
||||||
echo "@echo off
|
echo "@echo off
|
||||||
call update_comfyui.bat nopause
|
call update_comfyui.bat nopause
|
||||||
echo -
|
echo -
|
||||||
@ -58,11 +60,10 @@ jobs:
|
|||||||
|
|
||||||
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 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/*
|
python -m pip install --no-cache-dir ./temp_wheel_dir/*
|
||||||
echo installed basic
|
echo "installed basic"
|
||||||
ls -lah temp_wheel_dir
|
ls -lah temp_wheel_dir
|
||||||
mv temp_wheel_dir cu${{ inputs.cu }}_python_deps
|
mv temp_wheel_dir cu${{ inputs.cu }}_python_deps
|
||||||
tar cf cu${{ inputs.cu }}_python_deps.tar cu${{ inputs.cu }}_python_deps
|
tar cf cu${{ inputs.cu }}_python_deps.tar cu${{ inputs.cu }}_python_deps
|
||||||
|
|
||||||
- uses: actions/cache/save@v4
|
- uses: actions/cache/save@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: "Windows Release Nightly pytorch"
|
name: Windows Release Nightly pytorch
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -7,29 +7,32 @@ on:
|
|||||||
description: 'cuda version'
|
description: 'cuda version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "126"
|
default: '126'
|
||||||
|
|
||||||
python_minor:
|
python_minor:
|
||||||
description: 'python minor version'
|
description: 'python minor version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "13"
|
default: '13'
|
||||||
|
|
||||||
python_patch:
|
python_patch:
|
||||||
description: 'python patch version'
|
description: 'python patch version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "1"
|
default: '1'
|
||||||
# push:
|
# push:
|
||||||
# branches:
|
# branches: master
|
||||||
# - master
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
permissions:
|
permissions:
|
||||||
contents: "write"
|
contents: write
|
||||||
packages: "write"
|
packages: write
|
||||||
pull-requests: "read"
|
pull-requests: read
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -39,15 +42,14 @@ jobs:
|
|||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
|
python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
cd ..
|
cd ..
|
||||||
cp -r ComfyUI ComfyUI_copy
|
cp -r ComfyUI ComfyUI_copy
|
||||||
curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-amd64.zip -o python_embedded.zip
|
curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-amd64.zip -o python_embedded.zip
|
||||||
unzip python_embedded.zip -d python_embedded
|
unzip python_embedded.zip -d python_embedded
|
||||||
cd python_embedded
|
cd python_embedded
|
||||||
echo 'import site' >> ./python3${{ inputs.python_minor }}._pth
|
echo 'import site' >> ./python3${{ inputs.python_minor }}._pth
|
||||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
curl -fLO https://bootstrap.pypa.io/get-pip.py
|
||||||
./python.exe get-pip.py
|
./python.exe get-pip.py
|
||||||
python -m pip wheel torch torchvision torchaudio --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu${{ inputs.cu }} -r ../ComfyUI/requirements.txt pygit2 -w ../temp_wheel_dir
|
python -m pip wheel torch torchvision torchaudio --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu${{ inputs.cu }} -r ../ComfyUI/requirements.txt pygit2 -w ../temp_wheel_dir
|
||||||
ls ../temp_wheel_dir
|
ls ../temp_wheel_dir
|
||||||
@ -74,18 +76,17 @@ jobs:
|
|||||||
pause" > ./update/update_comfyui_and_python_dependencies.bat
|
pause" > ./update/update_comfyui_and_python_dependencies.bat
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
"C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable_nightly_pytorch.7z ComfyUI_windows_portable_nightly_pytorch
|
7z a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable_nightly_pytorch.7z ComfyUI_windows_portable_nightly_pytorch
|
||||||
mv ComfyUI_windows_portable_nightly_pytorch.7z ComfyUI/ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z
|
mv ComfyUI_windows_portable_nightly_pytorch.7z ComfyUI/ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z
|
||||||
|
|
||||||
cd ComfyUI_windows_portable_nightly_pytorch
|
cd ComfyUI_windows_portable_nightly_pytorch
|
||||||
python_embedded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
|
python_embedded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
|
||||||
|
|
||||||
ls
|
ls
|
||||||
|
|
||||||
- name: Upload binaries to release
|
- name: Upload binaries to release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z
|
file: ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z
|
||||||
tag: "latest"
|
tag: latest
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
34
.github/workflows/windows_release_package.yml
vendored
34
.github/workflows/windows_release_package.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: "Windows Release packaging"
|
name: Windows Release packaging
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -7,29 +7,32 @@ on:
|
|||||||
description: 'cuda version'
|
description: 'cuda version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "126"
|
default: '126'
|
||||||
|
|
||||||
python_minor:
|
python_minor:
|
||||||
description: 'python minor version'
|
description: 'python minor version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "12"
|
default: '12'
|
||||||
|
|
||||||
python_patch:
|
python_patch:
|
||||||
description: 'python patch version'
|
description: 'python patch version'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
default: "8"
|
default: '8'
|
||||||
# push:
|
# push:
|
||||||
# branches:
|
# branches: master
|
||||||
# - master
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
package_comfyui:
|
package_comfyui:
|
||||||
permissions:
|
permissions:
|
||||||
contents: "write"
|
contents: write
|
||||||
packages: "write"
|
packages: write
|
||||||
pull-requests: "read"
|
pull-requests: read
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/cache/restore@v4
|
- uses: actions/cache/restore@v4
|
||||||
@ -39,8 +42,7 @@ jobs:
|
|||||||
cu${{ inputs.cu }}_python_deps.tar
|
cu${{ inputs.cu }}_python_deps.tar
|
||||||
update_comfyui_and_python_dependencies.bat
|
update_comfyui_and_python_dependencies.bat
|
||||||
key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
|
key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
mv cu${{ inputs.cu }}_python_deps.tar ../
|
mv cu${{ inputs.cu }}_python_deps.tar ../
|
||||||
mv update_comfyui_and_python_dependencies.bat ../
|
mv update_comfyui_and_python_dependencies.bat ../
|
||||||
cd ..
|
cd ..
|
||||||
@ -52,15 +54,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- shell: bash
|
- run: |
|
||||||
run: |
|
|
||||||
cd ..
|
cd ..
|
||||||
cp -r ComfyUI ComfyUI_copy
|
cp -r ComfyUI ComfyUI_copy
|
||||||
curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-amd64.zip -o python_embedded.zip
|
curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-amd64.zip -o python_embedded.zip
|
||||||
unzip python_embedded.zip -d python_embedded
|
unzip python_embedded.zip -d python_embedded
|
||||||
cd python_embedded
|
cd python_embedded
|
||||||
echo 'import site' >> ./python3${{ inputs.python_minor }}._pth
|
echo 'import site' >> ./python3${{ inputs.python_minor }}._pth
|
||||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
curl -fLO https://bootstrap.pypa.io/get-pip.py
|
||||||
./python.exe get-pip.py
|
./python.exe get-pip.py
|
||||||
./python.exe -s -m pip install ../cu${{ inputs.cu }}_python_deps/*
|
./python.exe -s -m pip install ../cu${{ inputs.cu }}_python_deps/*
|
||||||
sed -i '1i../ComfyUI' ./python3${{ inputs.python_minor }}._pth
|
sed -i '1i../ComfyUI' ./python3${{ inputs.python_minor }}._pth
|
||||||
@ -82,18 +83,17 @@ jobs:
|
|||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
"C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable.7z ComfyUI_windows_portable
|
7z a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable.7z ComfyUI_windows_portable
|
||||||
mv ComfyUI_windows_portable.7z ComfyUI/new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z
|
mv ComfyUI_windows_portable.7z ComfyUI/new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z
|
||||||
|
|
||||||
cd ComfyUI_windows_portable
|
cd ComfyUI_windows_portable
|
||||||
python_embedded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
|
python_embedded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
|
||||||
|
|
||||||
ls
|
ls
|
||||||
|
|
||||||
- name: Upload binaries to release
|
- name: Upload binaries to release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
file: new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z
|
file: new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z
|
||||||
tag: "latest"
|
tag: latest
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user